Results 1 to 4 of 4

Thread: openrowset problem to query Access DB

  1. #1
    Join Date
    Sep 2006
    Location
    East Coast Of America
    Posts
    15

    openrowset problem to query Access DB

    Hi, there
    I wrote a OpenRowset query in SQL Server 2000 to access my 2003 Access DB:
    select *
    from OpenRowset ('microsoft.jet.oledb.4.0', 'G:\myFolder\myDB.mdb';'myname';'myPWD','myTable')

    I got error:
    "Server: Msg 7399, Level 16, State 1, Line 1
    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.]."

    The Access DB is password protected and My login was added to the work group. When I open Access DB directly, it would asked me work group login name & password. Then it asked DB password.

    I know something tricky here about work group and password. How to solve this problem by using OpenRowset query?

    Thanks!

  2. #2
    Join Date
    Sep 2002
    Posts
    5,938
    Is the file opened by other ones when you run the query?

  3. #3
    Join Date
    Sep 2006
    Location
    East Coast Of America
    Posts
    15
    Nope.
    The Access db is in my local drive and I tried to use my local SQL account to connect it.
    Any idea to use linked server ? How to go through the security configuration by adding the link server?
    Thanks!

  4. #4
    Join Date
    Sep 2002
    Location
    Fantasy
    Posts
    4,254
    1. When using .mdw file you have to update the system registry
    http://support.microsoft.com/?kbid=246255

    2. When querying you could use opendatasource to specify the system database

    select * from OPENDATASOURCE('Microsoft.Jet.OLEDB.4.0', 'Data Source="c:\MyDB.mdb";Jet OLEDB:System Database="C:\MyMDW.mdw";User ID=MyUser;Password=;')...a1

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •