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
 General SQL Server Forums
 New to SQL Server Programming
 Link to another databse table in Stored Procedure

Author  Topic 

1sabine8
Posting Yak Master

130 Posts

Posted - 2007-12-11 : 05:19:00
Hi I need to know if it is possible to write on a table from another database and this using a stored procedure. If yes what is the correct syntax to connect to the other database.

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2007-12-11 : 05:23:17
select ...
from YourDB.SchemaName.YourTable

_______________________________________________
Causing trouble since 1980
blog: http://weblogs.sqlteam.com/mladenp
SSMS Add-in that does a few things: www.ssmstoolspack.com <- new version out
Go to Top of Page
   

- Advertisement -