c# - GET table's description in SQL Server -


this question has answer here:

i want ms_description table

for have columns:

select      sc.name,      sep.value [description] sys.tables st inner join sys.columns sc on st.object_id = sc.object_id left join sys.extended_properties sep on st.object_id = sep.major_id                                      , sc.column_id = sep.minor_id                                      , sep.name = 'ms_description' st.name =@tablename 

i have @tablename parameter there thanks

try - use minor_id = 0 table's description (not columns):

select      t.name,      sep.*       sys.tables t inner join      sys.extended_properties sep on t.object_id = sep.major_id      sep.name = 'ms_description'     , sep.minor_id = 0    -- not column - table's description 

Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -