IF NOT EXISTS (SELECT * FROM SYSCOLUMNS INNER JOIN SYSOBJECTS ON SYSOBJECTS.id = SYSCOLUMNS.id 
               WHERE SYSCOLUMNS.NAME = 'ICDMDLKAYDET' AND SYSOBJECTS.name = 'HDOSYAICD')
ALTER TABLE dbo.HDOSYAICD ADD
	ICDMDLKAYDET bit NOT NULL CONSTRAINT DF_HDOSYAICD_ICDMDLKAYDET DEFAULT 1
