Click here to Skip to main content
15,911,035 members
Please Sign up or sign in to vote.
2.50/5 (2 votes)
See more:
Hi All,
I have a stored procedure I need to call several different times passing in different paramaters each time. I would like to collect the results as a single dataset. Is it possible...

SQL
Exec StoredProcedure param1,param2
union Exec StoredProcedure param1,param2
Posted
Updated 13-Sep-11 0:35am
v2

1 solution

 
Share this answer
 
Comments
AditSheth 13-Sep-11 7:11am    
hi
thanks for quick response
can it possible without temporary tables?
In the link you provided then want to union different sp. But in my case sp is same just parameter is different..
Herman<T>.Instance 13-Sep-11 7:23am    
I am not sure if that is possible. I guess you have to try
AditSheth 13-Sep-11 9:18am    
Ok,Thanks a lot

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