Script needed to check for existence of extended property

  • Is there a way in t-sql to check for the existence of an extended property on a field? (We are trying to setup a Data Dicitonary using extended properties. There is a problem. Suppose we setup 13 properties on a field. A month later we want to programmatically update or add a new extended property to the same field using our updated script. For update we need to check if the property already exists; otherwise, we will duplicate the Name! If the property does not exists then we "add" it.)

    TIA,

    Barkingdog

  • Theres a catalog view sys.extended_properties. You should be able to pull it right out of there.

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply