IF NOT EXISTS(
    SELECT * FROM sys.columns 
    WHERE Name      = N'noBorders'
      AND Object_ID = Object_ID(N'pal_SurfaceGridOptions'))
BEGIN
    ALTER TABLE dbo.pal_SurfaceGridOptions 
	ADD	noBorders bit NULL
END


IF NOT EXISTS(
    SELECT * FROM sys.columns 
    WHERE Name      = N'freezeHeader'
      AND Object_ID = Object_ID(N'pal_SurfaceGridOptions'))
BEGIN
    ALTER TABLE dbo.pal_SurfaceGridOptions 
	ADD	freezeHeader bit NULL
END

IF NOT EXISTS(
    SELECT * FROM sys.columns 
    WHERE Name      = N'iconsAsText'
      AND Object_ID = Object_ID(N'pal_SurfaceGridOptions'))
BEGIN
    ALTER TABLE dbo.pal_SurfaceGridOptions 
	ADD	iconsAsText bit NULL
END




