all groups > sql server (microsoft) > july 2004 >
You're in the

sql server (microsoft)

group:

Connect from sql query via IP adress - is i possible?



Connect from sql query via IP adress - is i possible? Just D.
7/31/2004 12:23:11 PM
sql server (microsoft): Does anybody really know is it possible? We don't want to create a linked
database, but we need to make some steps on the remote database, gather some
data and then send this data to our main server via IP connection, setting
the connection every time when the remote server wants to transfer the data.
Is it possible at all if we don't create a linked database or whatever, just
from sql script? If yes, then how?

Dmitri.

Re: Connect from sql query via IP adress - is i possible? oj
7/31/2004 1:03:49 PM
You can do ad-hoc/pass through query via openrowset or opendatasource.

http://msdn.microsoft.com/library/en-us/tsqlref/ts_oa-oz_78z8.asp

http://msdn.microsoft.com/library/en-us/tsqlref/ts_oa-oz_2be1.asp?frame=true


[quoted text, click to view]

Re: Connect from sql query via IP adress - is i possible? Just D.
7/31/2004 1:35:28 PM
Thanks for the answer.

[quoted text, click to view]

Another one idea - if I create ODBC and it's tested and works fine is it
possible to use that for the same purpose setting a remote database name via
ODBC? In other words, is it possible to use a database alias that works via
ODBC to set a connection from sql query without a linked database?

Maybe it's easier...

Dmitri.

Re: Connect from sql query via IP adress - is i possible? Dave Wickert [MSFT]
8/3/2004 5:46:28 PM
Look at Appendix F of the Analysis Services Operations Guide
http://www.microsoft.com/technet/prodtechnol/sql/2000/maintain/anservog.mspx
It has a nice example of how you do this.


--
Dave Wickert [MSFT]
dwickert@online.microsoft.com
Program Manager
BI SystemsTeam
SQL BI Product Unit (Analysis Services)
--
This posting is provided "AS IS" with no warranties, and confers no rights.

[quoted text, click to view]

AddThis Social Bookmark Button