当前位置:首页 > 数据库 > Sqlserver

SQL Server系统视图 [不定期更新]

表名=name, 创建时间=Create_Date, 修改时间=Modify_date from sys.tables--或者sys.objects where type=‘U‘

2.查看用户表的字段说明信息:

select 
    表名=case when col.column_id=1 THEN tab.name else N‘‘ end, 
    字段名=col.name,
    字段说明=isnull(ext.value,N‘‘)
from sys.tables tab 
    join sys.columns col 
        on tab.object_id=col.object_id
    join sys.extended_properties ext 
        on col.object_id=ext.major_id and col.column_id=ext.minor_id

SQL Server系统视图 [不定期更新]

标签:

本文系统来源:http://www.cnblogs.com/walden1024/p/4549511.html


【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!