I am trying to link an existing Access 2003 password protected database to a newly installed SQL Server 2005 Express database engine. I am using the ‘Add Linked Server Access MDB’ template in Management Studio to create the linked server. The linked server is created without error, however when I try to access it, I get the following error:
OLE DB provider "Microsoft.Jet.OLEDB.4.0" for linked server "Database1" returned message "Cannot start your application. The workgroup information file is missing or opened exclusively by another user.".
Msg 7399, Level 16, State 1, Procedure sp_tables_ex, Line 41
The OLE DB provider "Microsoft.Jet.OLEDB.4.0" for linked server "Database1" reported an error. Authentication failed.
Msg 7303, Level 16, State 1, Procedure sp_tables_ex, Line 41
Cannot initialize the data source object of OLE DB provider "Microsoft.Jet.OLEDB.4.0" for linked server "Database1".
A screen cast of the process I am following can be viewed at: http://www.okacs.com/screencasts/Linked Server - Secured MS Access.swf
And this is the SQL that I am using to create the linked server:
-- Add Linked Server Access MDB template
@server = N'Database1',
@provider = N'Microsoft.Jet.OLEDB.4.0',
@srvproduct = N'OLE DB Provider for Jet',
@datasrc = N'C:Program FilesMicrosoft SQL ServerMSSQL.1MSSQLDataDatabase1.mdb'
-- Set up login mapping using current user's security context
@rmtsrvname = N'Database1',
@useself = N'FALSE',
@locallogin = NULL,
@rmtuser = N'Admin',
@rmtpassword = 'secret'
-- List the tables on the linked server
EXEC sp_tables_ex N'Database1'
-- Select all the rows from the Customer table
SELECT * FROM Database1...Customers
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!
No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.
Your password has been sent to:email@example.com
To follow this tag...
Thanks! We'll email you when relevant content is added and updated.
Share this item with your network: