@vTableName = Table to be updated.
@vColumnName = Column to be added/updated.
@vColumnDT = Column Data Type.
@vColumnDF = Column Default value.
@bIsNULL = Is nullable column boolean value
@bNewColFlag = 0:Existing Col, 1:New Column boolean value
@FKtableName = If New col is Foreign Key pass the FK Table otherwise pass empty string ''
@FKColName = If New col is Foreign Key pass the FK Table Column Name otherwise pass empty string ''
Expected Result:
IF EXISTS(SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE table_name = 'Employee' AND column_name = 'SSNNumber')
ALTER TABLE dbo.Employee ALTER COLUMN SSNNumber NVARCHAR(10) NULL DEFAULT ('N')
GO