IF NOT EXISTS (SELECT * FROM SYSCOLUMNS INNER JOIN SYSOBJECTS ON SYSOBJECTS.id = SYSCOLUMNS.id 
              WHERE SYSCOLUMNS.NAME = 'AKTIF' AND SYSOBJECTS.name = 'TPAKET')
ALTER TABLE dbo.[TPAKET] ADD AKTIF bit NOT NULL CONSTRAINT [DF_TPAKET_AKTIF] DEFAULT (1)
GO
