Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 stored procedure call

Author  Topic 

sqllearner
Aged Yak Warrior

639 Posts

Posted - 2004-08-16 : 12:47:35
How can i call a stored procedure of a different database Say Iam using a query in Database A and I want to use a stored procedure used in a database B both are in the same server will B.dbo.storedprocedurename will work

derrickleggett
Pointy Haired Yak DBA

4184 Posts

Posted - 2004-08-16 : 12:48:45
yes

EXEC B.dbo.storedprocedurename

MeanOldDBA
derrickleggett@hotmail.com

When life gives you a lemon, fire the DBA.
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2004-08-16 : 12:48:48
Yes you just use the 3 part naming convention to get to the remote object.

Tara
Go to Top of Page

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2004-08-16 : 12:50:46
yes. but why don't you try and see for yourself?

Go with the flow & have fun! Else fight the flow :)
Go to Top of Page
   

- Advertisement -