select * from OPENDATASOURCE('SQLOLEDB','Data Source=ServerYouWantToReach;User ID=userNameForThatServer;Password=passwordForThatServer').databaseName.SchemaName.TableName
You can use this for inner join etc.
Have a good use.
For: More info: http://msdn.microsoft.com/en-us/library/ms179856.aspx
Hiç yorum yok:
Yorum Gönder