Click here to Skip to main content
15,919,245 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi
My stored procedure is very long.

It has 64 conditions.

Iam retrieving the data based on 64 conditions.

Is it possible to write 64 conditions in one stored procedure????

or any other method is there??

For Example:-

I have 6 parameters.Those are

Location,Date,Jobindustry,Jobterm,Minsal,maxsal

Iam retrieving the data based on my conditions like all parameters are null or any one is select or any two are select or any three or any four or any five or all select.




how can i write that as sub storedprocedures?????
Posted

1 solution

You can use exec to call a stored procedure,
So try to spit it, and pass the required parameter accordingly and call them.
 
Share this answer
 

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