If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Call Stored Procedure from one DB to another DB

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-22-04, 06:31
jsp2999 jsp2999 is offline
Registered User
 
Join Date: Jul 2004
Posts: 76
Call Stored Procedure from one DB to another DB

Hi All,

Brief:
Is there any way to connet to any remote database and execute the stored procedure from one database?

Details:
I've got connected to one Database say (DB-A) and executing stored procedure say (SP-1). My requirement is, I have to call stored procedure say (SP-2) resides at some other remote database (DB-B). How can I achve the same?

System Info:
OS: Windows 2000 Server, SP-IV
DB: DB2 UDB 8.1.3

Thanks in Advance,
Hopeful,
Jai
Reply With Quote
  #2 (permalink)  
Old 10-22-04, 08:47
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
You should be able to set up Federation between the two DB2 servers. THen you can use SET PASSTHRU SQL to execute on the remote server.

HTH

Andy
Reply With Quote
  #3 (permalink)  
Old 10-25-04, 00:17
jsp2999 jsp2999 is offline
Registered User
 
Join Date: Jul 2004
Posts: 76
Thanks Andy, Can you please provide me more details about the same and how to achive?

It would be great if you can provide some good study material/URLs.

Thanks again,
Jai
Reply With Quote
  #4 (permalink)  
Old 10-25-04, 08:02
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Read the "Federated Systems Guide". It is one of the DB2 manuals.

Andy
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On