blog

Home / DeveloperSection / Blogs / Drop Column in SQL Server

Drop Column in SQL Server

AVADHESH PATEL2864 30-Dec-2012

In this blog, I have described how to drop the column from existing table. For demonstration, I have used a table that given below.

CREATE TABLE [dbo].[EmpInfo]
(
[ID] INT IDENTITY PRIMARY KEY,
[Name] VARCHAR(50),
[Date] VARCHAR(50)
)


Syntax:


ALTER TABLE <Table Name> DROP COLUMN <Column Name>


Example:

ALTER TABLE [dbo].[EmpInfo]
DROP COLUMN [Date]

Updated 18-Sep-2014
Avadhesh Kumar Patel District Project Manager - Aligarh 14 months work experience in Panchayati Raj Department Sector as District Project Manager & 12 months work experience in IT Sector as Software Engineer. :-)

Leave Comment

Comments

Liked By