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