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.
Author |
Topic |
vbGuru
Starting Member
1 Post |
Posted - 2009-01-02 : 16:24:09
|
I think I can query from multiple databases on the same server by specifying the database name in the SELECT likeSELECT * FROM MyCustomerDb.CustomersBut what if you wanted to join it with OldCustomersDb which is on a seperate server.... any way to do this in a Stored Procedure...Never pour cream soda in your disk drive... |
|
spirit1
Cybernetic Yak Master
11752 Posts |
Posted - 2009-01-02 : 16:27:10
|
you have to create a linked server and use 4 part naming convention:select * from LinkedServerName.DatbaseName.SchemaName.TableName___________________________________________________________________________Causing trouble since 1980Blog: http://weblogs.sqlteam.com/mladenpSpeed up SSMS development: www.ssmstoolspack.com <- version 1.1 out! |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
|
|
|
|