February 25, 2008 at 12:51 am
Hi..,
I'm having Two Stored Procedures in Two Different Databases..
Database1 - Employee
Stored Procedure - Employee_Details
Database2 - Company
Stored Procedure - Company_Details
In Each Stored Procedure I Joined Three Tables(Inner Join) in both the Databases..
Now I want to Join these Two Stored Procedures from Different Databases to get My Result..
How to do this..
Thank You
February 25, 2008 at 1:19 am
You should use table-valued Functions instead of procedures.
You can do a simple select on them, use joins and union, ....
Regerds,
Denis
February 25, 2008 at 1:25 am
Correction if you dont' want to change the objects to functions:
you can always insert resultset of a procedure to table using:
INSERT INTO table (field1, field2, ....)
EXEC procedure @param1, @param2, ......
Create a temp table first and then run the above statment
Regards,
Denis
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy