十万火急!!问个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 '