ALTER TABLE "dbo"."TableName" ALTER COLUMN "NewColumnName" BIT NOT NULL;
The correct syntax to rename a column in MSSQL is:
EXEC sp_RENAME 'TableName.OldColumnName' , 'NewColumnName', 'COLUMN'
.ALTER TABLE "dbo"."TableName" ALTER COLUMN "NewColumnName" BIT NOT NULL;
EXEC sp_RENAME 'TableName.OldColumnName' , 'NewColumnName', 'COLUMN'
.Please login to leave a reply, or register at first.