Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Linked Server to MS Access Expand / Collapse
Author
Message
Posted Thursday, April 18, 2013 9:56 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Monday, August 19, 2013 8:08 PM
Points: 43, Visits: 566
All,

Well, this is kind of three folds...
1. the problem
2. the solution
3. any alternative

1. the problem
I receive a number of errors when trying to test connection to a linked server.
The linked server is created to an MS Access file located in the program files folder.
When I log into SSMS using Windows Authen, I successfully tested the linked server connection.
When I log into SSMS using SQL Server Authen, the connection test results in a lot of errors... one error after another.

Cause - After about three days trying to figure this crap out, I realized that the MDB file was locked. This locking is due to an automatic download service that another software is running to update the mdb file. Once i stopped the service, i am able to successfully test the connection using SQL Server Authen.

Question: Why does this locking affect only SQL Server Authen from connecting to the Linked server?

2. The solution
Since the users front end does not require constant access to the MDB File, i am able to set a stored procedure to run automatically such that I can pull data from the mdb file into the sql server database while not having to stop the service.

3. Is there any other solution to this problem?

Regards


Surendra
Post #1443968
Posted Thursday, April 18, 2013 12:31 PM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Today @ 2:49 PM
Points: 12,922, Visits: 32,299
as an aside, I have not gotten a linked server for access to work in SQL 64 bit / any version; against either a .mdb or .accdb

i can get the ACE drivers to work with Excel no problem
would you mind scripting your linked server and posting it? maybe i can get one to work here.


Lowell

--There is no spoon, and there's no default ORDER BY in sql server either.
Actually, Common Sense is so rare, it should be considered a Superpower. --my son
Post #1444084
Posted Friday, April 19, 2013 7:35 PM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Monday, August 19, 2013 8:08 PM
Points: 43, Visits: 566
exec sp_addlinkedserver @server='FTDP',
@srvproduct= 'Access',
@provider= 'Microsoft.ACE.OLEDB.12.0',
@datasrc= 'C:\ftdp.mdb'

you need to download the oledb.12.0 provider from microsoft website. just google it.



my problem is becoming even more interesting. I installed sql server enterprise edition, installed a new instance and it worked... both server authen and windows authen accessed the linked server after the ms access database was locked.

Well there were a few difference which i haven't gotten around to check whether this could be the cause of the problem:
1. VIA is disabled on the new instance and in general.
2. The new instance was configured to run on a specified user account. This is the same account i am using... its an administrator account and everything.
3. Now i have sql server enterprise edition.

So of the three, I am not sure which one solved the problem. But will update the forum when I figure this crap out.
Post #1444660
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse