取存储过程的信息

SELECT
 (case when a.colorder=1 then d.name else '' end) N'TabName',
 (case when a.colorder=1 then d.id  else '' end) N'TabId',
   a.colorder N'keyno',
   a.name N'colname',
   b.name N'DbType',
   a.length N'Size',
   (case  a.status when 72 then 'Output' else 'Input' end) N'Dir'

FROM  syscolumns  a left join systypes b on  a.xusertype=b.xusertype
inner join sysobjects d on a.id=d.id  and  d.xtype='P' and  d.Status>0
order by object_name(a.id),a.colorder

posted on 2005-10-17 11:28  老代哥哥  阅读(113)  评论(0编辑  收藏  举报

导航