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)
 execute stored procedure to another database

Author  Topic 

pipi
Starting Member

18 Posts

Posted - 2005-06-14 : 04:08:45
hi
I WANT TO EXECUTE A STORED PROCEDURE NOT IN CURRENT DATABASE

exec DATABASENAME.[DBO].GetPelaLogaMesoYpol @pela, @curloga, @start, @end, @mesoypol output


HOW TO PASS THE DATABASE NAME?
AS PARAMETER VARCHAR @dbase i have problem....

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2005-06-14 : 04:47:09
you can't. not without dynamic sql.


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

- Advertisement -