Dinu E Anastasiu
Ten Centuries
Points: 1177
More actions
June 1, 2006 at 1:35 am
#366285
Is it at all possible to lookup a table in another DB from within a stored procedure?
Thanks, Dinu
SQLZ
SSChampion
Points: 12872
June 1, 2006 at 1:55 am
#641105
Hi Dinu,
Yes. Just reference the table by fully qualifying it with the database and owner name.
e.g. select * from somedatabase.dbo.mytable
Karlsource control for SQL Server
June 1, 2006 at 12:55 pm
#641288
Many thanks Karl!
Dinu
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply