Extended Attributes manage database objects, used to generate a database design document

         In the software development work is inseparable from the design of the database. However, in practical work, maintaining the database design documents, access to the database design document for our software developers is a troublesome work, often due to maintenance is not timely, version, or get the documentation is not up to date, and cause of database design understanding deviation. Over time, it will result in the database, there are many extra table, or the table has extra fields, making personnel back into the work does not understand the meaning of these fields.
        To solve this problem, keep the database design document information maintainability, uniqueness and ease of use. The following proposed solutions for software development companies and personal use, to maintain a database of information.
Background: the use of extended attributes function sqlserver database have
1, fn_listextendedproperty return extended property values of database objects.
2, sp_addextendedproperty the new extended attributes added to the database objects. If the property already exists, the process fails.
3, sp_updateextendedproperty update values in existing extended attribute.
4, sp_dropextendedproperty remove existing extended attributes.

Reproduced in: https: //www.cnblogs.com/yitian/archive/2007/07/08/810138.html

Guess you like

Origin blog.csdn.net/weixin_34004750/article/details/93710282