IF NOT EXISTS (SELECT * FROM SYSCOLUMNS INNER JOIN SYSOBJECTS ON SYSOBJECTS.id = SYSCOLUMNS.id 
               WHERE SYSCOLUMNS.NAME = 'RKAYNAKID' AND SYSOBJECTS.name = 'HRANDEVU')
ALTER TABLE dbo.HRANDEVU ADD
	RKAYNAKID int NULL
GO