日期:2014-05-18  浏览次数:20432 次

十万火急!!问个sql server的问题哈杂个从内置表中查一个存储过程有多少个参数,谢谢
我现在需要查出一个存储过程有多少个参数,用了下面的语句
select   *   from   sysobjects    
where   xtype= 'P '
但是如果查参数的个数该怎么写,谢谢

------解决方案--------------------
sp_help 存儲過程名
------解决方案--------------------
select * from information_schema.parameters where specific_name= 'proc '
------解决方案--------------------
select count(*) from information_schema.parameters where specific_name= 'proc '