|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Tuesday, May 14, 2013 6:11 AM
Points: 185,
Visits: 941
|
|
hello experts, i want to write a select query which will access table from different instance, but cant create linked server on tht server bcos thts a production server.
please advice
thanks
|
|
|
|
|
UDP Broadcaster
      
Group: General Forum Members
Last Login: Wednesday, May 15, 2013 8:20 AM
Points: 1,446,
Visits: 1,883
|
|
Not sure if using OPENROWSET would help. Might depend on security settings. Look it up in Books Online (aka BOL) and see if that will work...
Steve (aka sgmunson)
   Weight Loss Tips
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Tuesday, May 14, 2013 6:11 AM
Points: 185,
Visits: 941
|
|
i believe openrowset still require linked server name to pass.
dirent server name wont work in tht right?
|
|
|
|
|
UDP Broadcaster
      
Group: General Forum Members
Last Login: Wednesday, May 15, 2013 8:20 AM
Points: 1,446,
Visits: 1,883
|
|
That's why I suggested you look at BOL, as I can't recall the exact syntax, but I do know that OPENQUERY has to have a LINKED SERVER NAME, while OPENROWSET uses a connection string. I just don't know if using OPENROWSET can be locked down so that no temporary linked servers can be created via OPENROWSET.
Steve (aka sgmunson)
   Weight Loss Tips
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Tuesday, May 14, 2013 6:11 AM
Points: 185,
Visits: 941
|
|
ok thanks a ton for your help
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Yesterday @ 8:21 PM
Points: 312,
Visits: 1,859
|
|
Zeal-DBA (12/14/2012)
ok thanks a ton for your help 
Did openrowset works for you?....I am curious.
SueTons.
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Tuesday, May 14, 2013 6:11 AM
Points: 185,
Visits: 941
|
|
yeah OPENROWSET works, it requires connection string, it does'nt require linked server to configure, but "ad hoc distributed queries" should be enabled through sp_configure.....
thank you so much
|
|
|
|