6

Both my local (and remote) SQL SERVER 2005 administrators claim that "allowing linked-servers is a security issue" and forbid their use here. (Huh?)

Anyway, is there a way to do something similar WITHOUT linked-servers?

SELECT *
FROM LOCAL_SERVER.MyDatabase.dbo.MyTable AS t1
INNER JOIN REMOTE_SERVER.MyDatabase.dbo.MyTable AS t2
ON t1.MyField = t2.MyField 
HelenJ
  • 139
  • 2
  • 5

2 Answers2

8

You could use OPENROWSET, which'll require the connection info, username & password...

While I understand that the administrator believes that having an always-on connection to their data is risky, that's why you lock down the account. OPENROWSET means including the connection info in plain text.

OMG Ponies
  • 325,700
  • 82
  • 523
  • 502
4

yes you can use OPENDATASOURCE but ad-hoc queries have to be enabled

Opendatasource: Provides ad hoc connection information as part of a four-part object name without using a linked server name.

SQLMenace
  • 132,095
  • 25
  • 206
  • 225