IF NOT EXISTS(SELECT * FROM sys.columns WHERE object_id = OBJECT_ID(N'[dbo].[MIETVERTRAEGE]')
AND name = 'CSAPP_HUF_ACCESS_GRANT_ID')
ALTER TABLE MIETVERTRAEGE ADD CSAPP_HUF_ACCESS_GRANT_ID varchar(MAX) NULL