views:

29

answers:

1

How to drop a Particular column in a Table?

Thanks in Advance

+3  A: 
CREATE TABLE dbo.MyTable (column_a INT, column_b VARCHAR(20) NULL);
GO
ALTER TABLE dbo.MyTable DROP COLUMN column_b;
GO
EXEC sp_help MyTable;
GO
DROP TABLE dbo.MyTable;
GO
RedFilter