Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Drop all extended properties on SQL Server

How to drop all extended properties on SQL Server in a scriptable way?

like image 825
user1662662 Avatar asked Sep 11 '12 11:09

user1662662


People also ask

How do I view extended properties in SQL Server?

Example of Creating Extended Properties To look at the Extended Properties for a column, in SSMS expand Tables, find the table we created and then expand the Columns. Then right click on column "sno" and select Properties and go to the Extended Properties page.

What is the use of extended property in SQL Server?

Extended Properties are a way to create a self-documenting database. Extended Properties in SQL Server allows us to create additional customized properties to store additional information. Extended Properties are a way to create a self-documenting database. Every Extended Property has a user defined name and value.

Can we drop all columns in SQL?

You can't delete a column that has PRIMARY KEY or FOREIGN KEY constraints or other dependencies except when using the Table Designer in SSMS. When using Object Explorer or Transact-SQL, you must first remove all dependencies on the column.


1 Answers

Please see the Below URL to drop the extended property:

http://msdn.microsoft.com/en-us/library/ms178595.aspx

like image 61
Deepak.Aggrawal Avatar answered Sep 21 '22 14:09

Deepak.Aggrawal