January 22, 2015 at 1:14 pm
The following adds a description to the column in a view. Good! I am assuming the same can be done to a table. ? Agree ?
Question: Using SQL how do we see a tables column names and description using a SELECT statement
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Cocenpt Description from Identifier for MPOG Procedure Room' , @level0type=N'SCHEMA',@level0name=N'Derived', @level1type=N'VIEW',@level1name=N'Case_General', @level2type=N'COLUMN',@level2name=N'MPOG_Procedure_Room_Type_Desc'
GO
January 22, 2015 at 3:56 pm
You can use either:
function "fn_listextendedproperty"
or directly read view "sys.extended_properties"
SQL DBA,SQL Server MVP(07, 08, 09) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy