October 8, 2005 at 12:21 am
Hi
All
I have Two database named test1 and test2
in each database one table named table1 and table2 respectively
I am currently in database test1 and I want the query to select records from table2 of test2 database
So my query may be
Select * from test2.table2 and it gives me error
So what be the quey.
Pl help me
October 8, 2005 at 12:58 am
Select * from test2..table2
two dots.
Joe
October 8, 2005 at 2:18 pm
And if these databases happen to be on separate instances, then look up BOL for "linked servers".
October 9, 2005 at 8:32 pm
And, you might want to consider using the user name in the 3 part naming convention as part of best practices...
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply