Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

remote server and local server - distributed queries?

 
   Database Help (Home) -> Connect RSS
Next:  Date time stamp help  
Author Message
janetb3

External


Since: Oct 08, 2004
Posts: 1



(Msg. 1) Posted: Thu Feb 10, 2005 9:55 am
Post subject: remote server and local server - distributed queries?
Archived from groups: microsoft>public>sqlserver>connect (more info?)

I have a remote server that I'm able to successfully register on a local sql
2000 server through EntMgr, and make successful selects on both remote and
local server databases via odbc.

Here's the question - Can I have a local server with some database/tables, a
remote server with some database2/tables, and make a single select statement
using table relationships from each? Without having to use DTS to make
imports/exports into the local server's database?

It seems that the connection object is specific to a server, but is there a
way to handle the reference to the remote server's database through a
database in the local server so that the connection object thinks
everything's local and can remain one-database-server-specific?

Sorry if I've communicated this poorly. I'd appreciate any responses.

 >> Stay informed about: remote server and local server - distributed queries? 
Back to top
Login to vote
Sue Hoegemeier

External


Since: Aug 26, 2003
Posts: 362



(Msg. 2) Posted: Mon Feb 14, 2005 1:01 pm
Post subject: Re: remote server and local server - distributed queries? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Yes...you can do this.
A query can include tables on a linked server by using 4
part naming conventions:
server.database(or catalog).owner(or schema).table
You can also use some of the other distributed query
functions such as Openquery to do this.

-Sue

On Thu, 10 Feb 2005 08:55:03 -0800, janetb
wrote:

 >I have a remote server that I'm able to successfully register on a local sql
 >2000 server through EntMgr, and make successful selects on both remote and
 >local server databases via odbc.
 >
 >Here's the question - Can I have a local server with some database/tables, a
 >remote server with some database2/tables, and make a single select statement
 >using table relationships from each? Without having to use DTS to make
 >imports/exports into the local server's database?
 >
 >It seems that the connection object is specific to a server, but is there a
 >way to handle the reference to the remote server's database through a
 >database in the local server so that the connection object thinks
 >everything's local and can remain one-database-server-specific?
 >
 >Sorry if I've communicated this poorly. I'd appreciate any responses.

 >> Stay informed about: remote server and local server - distributed queries? 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Cannot connect to local sql server 2000 from VB.NET on pc .. - Hi I just installed SQL Server 2000 to run locally on a WinXP Pro SP2 PC. When I run the following VB.NET code: Protected Const SQL_CONNECTION_STRING As String = _ "Server=localhost;" & _ "DataBase=Northwind;" &...

IIS 6 and Windows Authentication to SQL Server 2000 - I am running a Windows Server 2003 machine as my web server. I would like to use Windows authentication for connections to my SQL Server 2000 instance on a Windows 2000 server. I've read where mirroring the ASPNET account and password on the web server...

Oracle linked Server - Hello, I have a SQL 2003 SP3a on Windows 2003 and am connecting to an Oracle 9i database. I've set up the linked server and necessary permissions and it has been working successfully for months. However occasionally after rebooting the machine I..

automating server registration - I'm forever running around updating\ change client libraries and aliases on developer machines. Has anyone any idea how I could go about automating this eg User logs in to the network and automatically their server aliases are updated\ corrected with...

Remote connection errors - When trying to connect to 2 of my SQL Servers I am getting General Network Error. I have run Portqry against both of my servers and they both return that ms-sql-s Sevice is listening on port 1433. When I try running ODBCPing I get the following..
   Database Help (Home) -> Connect All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]