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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Stored Proc from another DB

Status
Not open for further replies.

Nova980

Technical User
May 20, 2009
40
US
What's the syntax for calling a stored procedure located on another DB on the same server?

Thanks in advance.
 
Exec DatabaseName.SchemaName.StoredProcedureName

Usually schemaname = dbo, so...

Exec OtherDB.dbo.StoredProcedureName



-George

"The great things about standards is that there are so many to choose from." - Fortune Cookie Wisdom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top