Jun 24, 2009 #1 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.
What's the syntax for calling a stored procedure located on another DB on the same server? Thanks in advance.
Jun 24, 2009 #2 gmmastros Programmer Feb 15, 2005 14,909 US 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 Upvote 0 Downvote
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