How To Delete Description Value for a Column in Table using SQL Command?

 Posted by Lakhangarg on 10/27/2009 | Category: Sql Server Interview questions | Views: 2967

We can Delete Description from Column using sp_dropextendedproperty System Store Procedure.

Sample Command to Delete Description from Column in a Table:

EXEC sys.sp_dropextendedproperty @name=N'MS_Description', @value=N'My Description for Column Here' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'MyTableName', @level2type=N'COLUMN',@level2name=N'ColumnName'

Thanks & Regards
Lakhan Pal Garg

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response