Click here to Skip to main content
16,012,153 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Dear sir,

How to Merge Two separate Stored Procedure in asp.net and Display in Crystal reports.

For Example,


sp_RestTbl1, and
sp_OrderTbl1

these 2 stored Procedure how to join/merge
and display in webpage.

by mohan
Posted

you can create one more store proc named proc3, inside that proc

SQL
create or alter procedure proc3
begin

exec proc1 param1, param2
exec proc2 param3, param4

end


this is a rough idea, the proc3 will give ceombined result from both the proc, in 2 diffrent result sets.
 
Share this answer
 
Comments
Mohankumar.Engain 1-Nov-11 9:17am    
ok its good idea....
but second execute statement is does not affect in binding the crystal reports(not display in report).
any idea for this error.
only first statement only displayed. why like that display any idea....
by mohan...
Mohankumar.Engain 1-Nov-11 9:19am    
I mean second statement column does not display, field Explorer (Crystal report viewer)in select report source time....
If you have access to the source of the two storedprocedures then copy and paste two sources into one new stored procedure and put a UNION keyword between the two parts to merge them and make a single stored procedure of them.
I think other ways are as rough as this one.
 
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