• SQL2005中取得表字段相关信息


    SELECT
                               [Table Name] = OBJECT_NAME(c.object_id),
                               [ColumnName] = c.name,
                               [Description] = ex.value
                               FROM
                               sys.columns c
                               LEFT OUTER JOIN
                               sys.extended_properties ex
                               ON
                               ex.major_id = c.object_id
                               AND ex.minor_id = c.column_id
                               AND ex.name = 'MS_Description'
                               WHERE
                               OBJECTPROPERTY(c.object_id, 'IsMsShipped')=0
                               AND OBJECT_NAME(c.object_id) ='Ord_M'
  • 相关阅读:
    小组项目进度汇报
    小组项目进程展示
    结队项目
    小组计划
    个人项目:数独
    问题
    自我介绍
    结对项目
    软件工程基础大项目——数独问题
    关于软件工程的几个问题
  • 原文地址:https://www.cnblogs.com/jacker1979/p/1548062.html
Copyright © 2020-2023  润新知