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 July 1st, 2003, 09:40 AM
Registered User
 
Join Date: Jun 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to VerdaFolio
Default Error 7399 when accessing REMOTE .mdb

Need Help! Problem illustrated as below.
NorthWind.mdb (MS sample) is located on a
remote drive (U:) thru network. There is
no access restrictions on it. But after
the Linked Server is built, we can never
access it. Error message follow.
Appreciate it if you can directly reply to
[email protected]
-----------------------------------
USE master
GO
EXEC sp_addlinkedserver
@server = 'northU',
@provider = 'Microsoft.Jet.OLEDB.4.0',
@srvproduct = 'OLE DB Provider for Jet',
@datasrc = 'U:\northwind.mdb'
GO

EXEC sp_addlinkedsrvlogin
@rmtsrvname = 'northU',
@useself = false,
@locallogin = 'sa',
@rmtuser = 'admin',
@rmtpassword = NULL
GO

USE master
GO
SELECT * FROM OPENQUERY( northU, 'select * from shippers')

Server: Msg 7399, Level 16, State 1, Line 2
OLE DB provider 'Microsoft.Jet.OLEDB.4.0' reported an error.
[OLE/DB provider returned message: Could not find file
    'C:\WINDOWS\system32\NorthU'.]
 
Old July 1st, 2003, 06:32 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 215
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Use UNC rather than mapped drives to register databases. The reason is that while the mapped drive U may exist in your account, it may not in the account under which SQL Server runs. UNC (Universal Naming Convention) means using \\<machinename>\<sharename>\<path> eg:
\\fileserver\databases\northwind.mdb

regards
David Cameron
 
Old July 9th, 2003, 01:42 PM
Registered User
 
Join Date: Jun 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to VerdaFolio
Default

Hi, David!
Many Thanks! We shall try it here...
Regards!
VerdaFolio





Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessing a remote sqlserver Through Proxy Server? mizimizi Classic ASP Databases 0 July 23rd, 2006 05:49 AM
Renaming remote mdb file elansolutionsltd Access VBA 7 November 11th, 2005 07:00 AM
Error 7399 when accessing remote db ?! VerdaFolio Access 1 June 2nd, 2004 10:47 AM
Accessing a remote web site Ray Pinnegar Access VBA 2 July 24th, 2003 08:34 PM





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