Link to home
Start Free TrialLog in
Avatar of John Esraelo
John EsraeloFlag for United States of America

asked on

SQL: ExtendedProperties::

Hello Team,

Is there an easy way to programmatically (using TSQL) update/add/delete extended property attributes and values on objects in SQL server?


Thx

JohnE
ASKER CERTIFIED SOLUTION
Avatar of Anthony Perkins
Anthony Perkins
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of John Esraelo

ASKER

These are good guys.  I will have to write scripts around these 3 SPs.  For instance, I will have to check for an attribute's existence first prior to UPDATE.. thing like that..
but this should work..
Meanwhile, if you guys have snippets of some associated scripts then please share ;)
thx
In order to check for existence consider using either
sys.fn_listextendedproperty
http://msdn.microsoft.com/en-us/library/ms179853(v=sql.105).aspx

Or:
sys.extended_properties
http://msdn.microsoft.com/en-us/library/ms177541(v=sql.105).aspx
awesome!  Thank you
I have started to build my automated routines to update my USP and UDF EP attributes.
thx