得到所有用户存储过程及参数列表

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 huntfox 的 blog

alter procedure getdatabaseinfo9

as
select (case when b.colorder=1 or b.colorder is null then a.name else '' end)  as n'表名' ,b.name as n'字段名' ,c.name as n'数据类型' ,b.prec as n'长度',(case when b.colstat=4 then '√'else '' end) n'是否输出', b.colorder n'字段序号',(case when b.colorder=1 or b.colorder is null then d.text else '' end)  as n'内容' from sysobjects a left join syscolumns b on b.id=a.id left join systypes c on (c.xtype=b.xtype and c.name<>'sysname') left join syscomments d on d.id= a.id where a.schema_ver=0 and a.xtype='p' order by a.name,b.colorder 
 return

-- by huntfox

本文关键:得到所有用户存储过程及参数列表
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top