Solved

Remote Query in SQL 6.5

Posted on 2000-04-25
1
220 Views
Last Modified: 2006-11-17
Hi,
I have two computers with sql server version 6.5. both of them have a databse called tmp.
i registred the first sql server to the other.
i want to run a script which query the second databse (on the remote server). i don't know how to define the other sql server. for instance

select * from RemoteServer.tmp ????
0
Comment
Question by:nirkr
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 6

Accepted Solution

by:
crsankar earned 100 total points
ID: 2746998
When you are using a remote query you have to use a a four part name as in

select * from server.database.user.table

e.g.

select * from remoteserver.northwind.dbo.products

Hope this helps


0

Featured Post

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

724 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question