This code will assist in helping you create a column should it not already exist.
IF COLUMNPROPERTY(OBJECT_ID('dbo.address'), 'zip4', 'ColumnId') IS NULL BEGIN ALTER TABLE address ADD zip4 INT NULL END
Last Updated on October 26, 2015
This code will assist in helping you create a column should it not already exist.
IF COLUMNPROPERTY(OBJECT_ID('dbo.address'), 'zip4', 'ColumnId') IS NULL BEGIN ALTER TABLE address ADD zip4 INT NULL END
You must be logged in to post a comment.