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
-- ========================================
EXEC sp_addlinkedserver
@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'
GO
-- Set up login mapping using current user's security context
EXEC sp_addlinkedsrvlogin
@rmtsrvname = N'Database1',
@useself = N'FALSE',
@locallogin = NULL,
@rmtuser = N'Admin',
@rmtpassword = 'secret'
GO
-- List the tables on the linked server
EXEC sp_tables_ex N'Database1'
GO
-- Select all the rows from the Customer table
SELECT * FROM Database1...Customers
Software/Hardware used:
ASKED:
January 23, 2009 2:02 PM
UPDATED:
January 23, 2009 2:13 PM