dbTalk Databases Forums  

Linked server to Access MDB

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss Linked server to Access MDB in the comp.databases.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
ron paii
 
Posts: n/a

Default Linked server to Access MDB - 05-04-2011 , 12:36 PM






I am trying to create a Linked Server from MS SQL server Management Studio
to a MDB file on a 2nd Server.
Using Windows authentication I can query a remote table in the Studio but
not from a remote application. Using SQL authentication I get the following
error "Cannot start your application. The workgroup information file is
missing or opened exclusively by another user." If the MDB file is moved to
the C: drive of the SQL server, everything works, using both authentication
methods. There is no security setup on the MDB file.
SQL server is NOT using a Domain account.

SQL server 2008, 64Bit.
Provider: Microsoft.ACE.OLEDB.12.0
Allow inprocess = True

msjet40.dll version is 4.0.9755.0

I got Access is denied from
exec xp_cmdshell 'dir \\pack01\data\paisys\Data-V10\Backup\X4\*.*';
go

The script generated by management studio is as follows
/****** Object: LinkedServer [PARTSDB] Script Date: 05/04/2011 09:15:41
******/
EXEC master.dbo.sp_addlinkedserver @server = N'PARTSDB',
@srvproduct=N'PARTSDB', @provider=N'Microsoft.ACE.OLEDB.12.0',
@datasrc=N'\\pack01\Data\PaiSys\Data-V10\backup\X4\CS.mdb'
/* For security reasons the linked server remote logins password is changed
with ######## */
EXEC master.dbo.sp_addlinkedsrvlogin
@rmtsrvname=N'PARTSDB',@useself=N'True',@locallogi n=NULL,@rmtuser=NULL,@rmtpassword=NULL
GO
EXEC master.dbo.sp_serveroption @server=N'PARTSDB', @optname=N'collation
compatible', @optvalue=N'false'
GO
EXEC master.dbo.sp_serveroption @server=N'PARTSDB', @optname=N'data access',
@optvalue=N'true'
GO
EXEC master.dbo.sp_serveroption @server=N'PARTSDB', @optname=N'dist',
@optvalue=N'false'
GO
EXEC master.dbo.sp_serveroption @server=N'PARTSDB', @optname=N'pub',
@optvalue=N'false'
GO
EXEC master.dbo.sp_serveroption @server=N'PARTSDB', @optname=N'rpc',
@optvalue=N'false'
GO
EXEC master.dbo.sp_serveroption @server=N'PARTSDB', @optname=N'rpc out',
@optvalue=N'false'
GO
EXEC master.dbo.sp_serveroption @server=N'PARTSDB', @optname=N'sub',
@optvalue=N'false'
GO
EXEC master.dbo.sp_serveroption @server=N'PARTSDB', @optname=N'connect
timeout', @optvalue=N'0'
GO
EXEC master.dbo.sp_serveroption @server=N'PARTSDB', @optname=N'collation
name', @optvalue=null
GO
EXEC master.dbo.sp_serveroption @server=N'PARTSDB', @optname=N'lazy schema
validation', @optvalue=N'false'
GO
EXEC master.dbo.sp_serveroption @server=N'PARTSDB', @optname=N'query
timeout', @optvalue=N'0'
GO
EXEC master.dbo.sp_serveroption @server=N'PARTSDB', @optname=N'use remote
collation', @optvalue=N'true'
GO
EXEC master.dbo.sp_serveroption @server=N'PARTSDB', @optname=N'remote proc
transaction promotion', @optvalue=N'true'
GO

Reply With Quote
  #2  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: Linked server to Access MDB - 05-04-2011 , 04:37 PM






ron paii (none (AT) nospam (DOT) com) writes:
Quote:
I am trying to create a Linked Server from MS SQL server Management Studio
to a MDB file on a 2nd Server.
Using Windows authentication I can query a remote table in the Studio
but not from a remote application. Using SQL authentication I get the
following error "Cannot start your application. The workgroup
information file is missing or opened exclusively by another user." If
the MDB file is moved to the C: drive of the SQL server, everything
works, using both authentication methods. There is no security setup on
the MDB file.
SQL server is NOT using a Domain account.
That is probably the problem. If SQL Server runs under LocalSystem or
somesuch, there is usually not access rights to remote shares.


--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx

Reply With Quote
  #3  
Old   
ron paii
 
Posts: n/a

Default Re: Linked server to Access MDB - 05-05-2011 , 06:56 AM



"Erland Sommarskog" <esquel (AT) sommarskog (DOT) se> wrote

Quote:
ron paii (none (AT) nospam (DOT) com) writes:
I am trying to create a Linked Server from MS SQL server Management
Studio
to a MDB file on a 2nd Server.
Using Windows authentication I can query a remote table in the Studio
but not from a remote application. Using SQL authentication I get the
following error "Cannot start your application. The workgroup
information file is missing or opened exclusively by another user." If
the MDB file is moved to the C: drive of the SQL server, everything
works, using both authentication methods. There is no security setup on
the MDB file.
SQL server is NOT using a Domain account.

That is probably the problem. If SQL Server runs under LocalSystem or
somesuch, there is usually not access rights to remote shares.


--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx

Is there any issues with running it under a Domain account?

Reply With Quote
  #4  
Old   
Henk van den Berg
 
Posts: n/a

Default Re: Linked server to Access MDB - 05-05-2011 , 09:37 AM



ron paii schreef op 05-05-2011 13:56:

Quote:
Is there any issues with running it under a Domain account?



It's actually best practice to run it under a standard Domain user account.

Reply With Quote
  #5  
Old   
ron paii
 
Posts: n/a

Default Re: Linked server to Access MDB - 05-05-2011 , 01:30 PM



"Henk van den Berg" <hvandenberg (AT) xs4all (DOT) nl> wrote

Quote:
ron paii schreef op 05-05-2011 13:56:


Is there any issues with running it under a Domain account?



It's actually best practice to run it under a standard Domain user
account.
Thank you, I'll give that a try.

Reply With Quote
  #6  
Old   
ron paii
 
Posts: n/a

Default Re: Linked server to Access MDB - 05-06-2011 , 02:51 PM



"ron paii" <none (AT) nospam (DOT) com> wrote

Quote:

"Henk van den Berg" <hvandenberg (AT) xs4all (DOT) nl> wrote in message
news:4dc2b673$0$34849$e4fe514c (AT) news (DOT) xs4all.nl...
ron paii schreef op 05-05-2011 13:56:


Is there any issues with running it under a Domain account?



It's actually best practice to run it under a standard Domain user
account.

Thank you, I'll give that a try.
Got it to work by executing the MSSQLSERVER service under a Domain account
with rights to the folder where the MDB file is stored.

Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.