PC Review


Reply
Thread Tools Rate Thread

Cannot link SQL Server to a secured Access database

 
 
Robert
Guest
Posts: n/a
 
      23rd Jul 2003
Hi,

I am trying to link a secured Access (Jet) database to a SQL Server (MSDE)
database; however, I cannot get it to work. The msdn article, "PRB: Need to
Map to Default Admin Account and Use NULL for Password in Order Query Linked
Server to Access," says that this cannot be done; however, I have seen other
articles that say to change a registry setting to my workgroup file to
access secured Access databases.

I use the following to create the link to the unsecured Access database:

sp_addlinkedserver 'RemoteServer', 'OLE DB Provider for Jet',
'Microsoft.Jet.OLEDB.4.0', 'database.mdb'

sp_addlinkedsrvlogin 'RemoteServer', 'false', 'sa', 'Admin', NULL

This works fine.

For linking to the secured database I update the registry key:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Jet\4.0\Engines\SystemDB

with my mdw file, and change the login command to

sp_addlinkedsrvlogin 'RemoteServer', 'false', 'sa', 'DbUser', 'user'

to include a user name DbUser from the workgroup and its password. Then when
I try to query (actually, I'm creating a view) I receive the following
error:

OLE DB provider 'Microsoft.Jet.OLEDB.4.0' reported an error. Authentication
failed.
[OLE/DB provider returned message: Cannot start your application. The
workgroup information file is missing or opened exclusively by another
user.]
OLE DB error trace [OLE/DB Provider 'Microsoft.Jet.OLEDB.4.0'
IDBInitialize::Initialize returned 0x80040e4d: Authentication failed.].

This is VERY frustrating since we (programmers) can open secured Access
databases through Microsoft's APIs. Why can't they!

I have tried variations of the sp_addlinkedserver to include variations of
the connection string in the procedures provider string parameter. I also
created an ODBC data source for the secured Access database and tried
linking to it. I receive a different error:

Invalid schema or catalog specified for provider 'MSDASQL'.
OLE DB error trace [Non-interface error: Invalid schema or catalog
specified for the provider.].

I read somewhere that MS has a bug in reading OLE DB provider schema
information. Is there a workaround for this?

The Access database that I am connecting to is secured, and that cannot be
changed. I really, really don't want to change the default Access workgroup
on the computers that our product gets installed on (even if that method
worked). If I cannot solve this, I will have to dump SQL Server and use a
secured Access database (better technology?) to link the target secured
Access database to.

It seems that a lot of projects link Access to SQL Server and in a
production environment the Access database must (should) be secured. I'm
sure somebody else has these requirements.

Please let me know if there is a way to solve this problem.

Thanks,

Robert


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Link table in another secured (.mdw) database vbcraft Microsoft Access Security 4 4th Dec 2007 08:16 AM
Link table from a secured database to another secured database wa7ed via AccessMonster.com Microsoft Access Security 4 8th Dec 2005 04:58 AM
Please help for import or link a table from a secured database =?Utf-8?B?QmxpbmRh?= Microsoft Access External Data 6 8th Jul 2005 09:40 PM
How To: Link to tables in a Secured database =?Utf-8?B?VG9ueV9WQkFDb2Rlcg==?= Microsoft Access Security 1 16th Oct 2004 01:43 AM
Link to a secured database =?Utf-8?B?Ym9hcmRyaWRlcg==?= Microsoft Access Security 2 17th Aug 2004 06:19 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:28 PM.