In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
This article is about how to derive a data dictionary in mssql. The editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.
Right-click the data where you want to export the data dictionary, create a new query, and execute the following code
SELECT (case when a.colorder=1 then d.name else''end) table name, d.xtype as table type, a.colorder field serial number, a.name field name, (case when COLUMNPROPERTY (a.idjina.namejemagram IsIdentity') = 1 then' √ 'else' 'end) identification (case when (SELECT count (*) FROM sysobjects WHERE (name in (SELECT name FROM sysindexes WHERE (id = a.id) AND) (indid in (SELECT indid FROM sysindexkeys WHERE (id = a.id) AND (colid in (SELECT colid FROM syscolumns WHERE (id = a.id) AND (name = a.name) AND (xtype = 'PK')) > 0 then' √ 'else' end) primary key, b.name type, a.length occupied bytes, COLUMNPROPERTY (a.idform a.name) 'PRECISION') as length, isnull (COLUMNPROPERTY (a. √ a. Name description scale'), 0) as decimal places, (case when a.isnullable=1 then '√' else''end) allows null, isnull (e.textdepartment') default value, isnull (g. [value],'') AS field indicates FROM syscolumns a left join systypes b on a.xtype=b.xusertype inner join sysobjects d on a.id=d.id and d.xtype in ('U') 'V') and d.namebeardtproperties' left join syscomments e on a.cdefault=e.id left join sys.extended_properties g on a.id=g.major_id AND a.colid = g.major_id order by a.idmaea.colorder
The above is how to derive the data dictionary in mssql. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.