SQL Server dba-daily query view

Source: Internet
Author: User
Tags dba

1. query table name or column name in Chinese comments (SQL Server 2008)

Select T.object_id from sys.tables tjoins on T.  object_id=and='ms_description'  and p.minor_id=0;
1.1 Query Table name Chinese comments

SelectT1.*, T2.name ascolumn_name from (SelectT.object_id, P.major_id,p.minor_id,t.name asTables_name, P.value,t.type,t.type_desc fromsys.tables TJoinsys.extended_properties P onT.object_id =p.major_id andP.name= 'ms_description') T1 Left Joinsyscolumns T2 onT1.object_id=t2.id andt1.minor_id=T2.colid;
1.2 Check out the table name and column name in Chinese

SQL Server dba-daily query view

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.