Results 1 to 5 of 5

Thread: Access - Linked Servers

  1. #1
    Gary Phillips Guest

    Access - Linked Servers

    Hi

    we have some Access databases that are password protected. I get an error when I try an access these through a Linked Server. If I remove the password there is no problem.

    I have tried adding the password to the security Information with a user of admin but this fails with a 7303 error. Should I not use admin as the user ??

    Any ideas ???

    thanks

    Gary

  2. #2
    Join Date
    Nov 2002
    Location
    Bellingham, WA
    Posts
    34
    Can you tell me what settings you used for the linked server setup? I want to access an Access database via query analyzer but don't know the setup syntax.

    Thanks,

    Al

  3. #3
    Join Date
    Sep 2002
    Location
    Fantasy
    Posts
    4,254
    --OpenRowset
    select * from OPENROWSET('Microsoft.Jet.OLEDB.4.0',
    'c:\Jimmys\Jimmys.mdb';'admin';'', [Warehouse location])
    Last edited by MAK; 08-27-2003 at 06:04 PM.

  4. #4
    Join Date
    Sep 2002
    Location
    Fantasy
    Posts
    4,254
    --Linked server

    EXEC sp_addlinkedserver
    @server = 'MyAccess',
    @provider = 'Microsoft.Jet.OLEDB.4.0',
    @srvproduct = 'OLE DB Provider for Jet',
    @datasrc = 'C:\Jimmys\Jimmys.mdb'
    go

    select * from openquery(MyAccess,'Select * from [warehouse location]')

  5. #5
    Join Date
    Sep 2002
    Location
    Fantasy
    Posts
    4,254
    --opendatasource
    SELECT *
    FROM OpenDataSource( 'Microsoft.Jet.OLEDB.4.0', 'Data Source="c:\Jimmys\Jimmys.mdb";User ID=Admin;Password=;')...[Warehouse location]

Posting Permissions

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