Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 14th, 2003, 10:30 AM
Registered User
 
Join Date: Aug 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default SQL Server 7.0 talking to SQL Server 2000

I have a SQL Server 7.0 database I'm trying to get to talk to a SQL Server 2000 database. The communication actually needs to be 2-way in the end.

I've been trying to use the sp_addlinkedserver stored procedure in conjuction with sp_addlinkedsrvlogin.

So far, her is what I have:

exec sp_addlinkedserver @server='NAICT011\MFGSQL', @srvproduct='',
    @provider='SQLOLEDB', @datasrc='NAICT011\MFGSQL'

exec sp_addlinkedsrvlogin 'NAICT011\MFGSQL', FALSE,
    NULL, 'engdb', 'engdb'

Then, I attempted to do the following query:

select * from [NAICT011\MFGSQL].[Drive Loaner Test].[dbo].[tbl_Drives_Out]
    where userid='mbenue'

I get the following error:
[OLE/DB provider returned message: Client unable to establish connection]
[DBNMPNTW]ConnectionOpen (CreateFile()).

This is the SQL Server 7.0 trying to talk to the SQL Server 2000 database. If anyone can tell me what I'm doing wrong or tell me how they have done it successfully, I would be greatly appreciative! Thanks!


 
Old August 20th, 2003, 01:59 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 111
Thanks: 0
Thanked 0 Times in 0 Posts
Default

What MDAC version do you have installed on the machine where SQL Server 7 is installed?

Cheers
Ken

www.adOpenStatic.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
How Run .sql Script file in MS SQL Server 2000? aarkaycee SQL Server 2000 5 October 12th, 2009 05:43 AM
Conflict in SQL Server 2000 and SQL Server 2005 ayan.mukherjee SQL Language 0 June 30th, 2008 03:34 AM
migrating from sql server 2000 to sql server 2005 abinashpatra SQL Server 2005 2 December 1st, 2006 03:45 PM
SQL Server 2000 and SQL Server 2000 CE dparsons SQL Server 2000 1 July 31st, 2006 12:59 PM
Diff b/w SQL Server 7 and SQL Server 2000 ashu_from_india SQL Server 2000 1 April 25th, 2005 01:00 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.