Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Call stored procedure on other server

Status
Not open for further replies.

UGrad

Programmer
Oct 15, 2002
40
0
0
CA
Hi,
I have two SQL 2000 servers, A and B.
On server A, there is a stored procedure C.
On server B, there is a stored procedure D.
Is it possible to call D inside C??
 
Sure, you need a linked server setup I think...

Here's what I've done

On server sql1 (linked server name sql2)

exec sql2.dbo.StoredProcName


"...your mom goes to college..."
 
hmm, wht code do u write to link the servers? i thought that u needed to open some kind of connection to the 2nd server???

Known is handfull, Unknown is worldfull
 
You can create a linked server with sp_addlinkedserver, or do it though EM.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top