|
Hi all, Is there any other way that we can connect tables in other sql server with out using linked server? If yes please advice , i don't want to use inked server .
(comments are locked)
|
|
OPENROWSET is one of the options to access remote data
(comments are locked)
|
|
This question has already been answered, but I would like to point out that in order to use the OPENROWSET, OPENQUERY and OPENDATASOURCE, the 'Ad Hoc Distributed Queries' option has to be enabled. In order to even see the value of this specific option let alone to modify it the 'show advanced options' option has to be enabled. If you need to make sure that you can always use the distributed queries you can simply do this: However, if any of these options are disabled per DBA requirements then you cannot really arbitrarily change the server settings. In this case, when querying the remote server is just a one time ordeal which must never happen again then you can use this script to modify the options as needed and then restore them to the original state if needed. Of course, it goes without saying that if I know that I must modify the settings for some one time job, I still let the DBA know about it in advance. Here is the script: Oleg
(comments are locked)
|
|
You can use the 4 part query...here is an example ServerName.DatabaseName.SchemaName.TableName.. Hope this helps... For that you would need the linked server which is not the OP's requirement.
Mar 08 '12 at 08:59 AM
Usman Butt
(comments are locked)
|

