Click here to Skip to main content
15,881,516 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i wants to find the list of Stored procedure which of more than 3 parameter in sql server.

In my database i have more than 1000 procudure. my task is to find the list of procedure which have more than 3 parameter.
Posted

1 solution

Try this..

SQL
USE DataBaseName

select SPECIFIC_SCHEMA,SPECIFIC_NAME,COUNT(PARAMETER_NAME) PARAMETER_COUNT
from information_schema.PARAMETERS
group by SPECIFIC_SCHEMA,SPECIFIC_NAME
having COUNT(PARAMETER_NAME)>=3
 
Share this answer
 
v3
Comments
Maciej Los 29-Jul-13 5:04am    
Good job! +5

By The Way: first line should define database, for example USE DatabaseName;
Adarsh chauhan 29-Jul-13 5:08am    
Thanks...
and ya you are right first line should be Use DatabaseName;
but I skipped that because i thought that it is understood...
added now.. Thanks for reminding :)
Raja Sekhar S 29-Jul-13 7:44am    
If Data Base Collation is Case Sensitive then u have to Use Upper Case...
INFORMATION_SCHEMA.PARAMETERS or else Error will come..
Adarsh chauhan 29-Jul-13 7:47am    
Thanks for the tip Raja.. I really didn't know that.. Thanks for sharing it...
Raja Sekhar S 29-Jul-13 7:48am    
You are Welcome... Nice Solution +5!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900