I need to use an Access table (on a network drive) in a T-SQL script in SQL Server 2000. I used the following code to create a linked server on our server:
EXEC sp_addlinkedserver
@server = 'NPVData',
@srvproduct = 'OLE DB Provider for Jet',
@provider = 'Microsoft.Jet.OLEDB.4.0',
@datasrc = '\\garfield\apps\database\NPV\npvdata.mdb'
To check the connection, I ran this script:
Select *
From NPVData.npvdata.mdb.tblProposals
(tblProposals is a table in npvdata.mdb)
This resulted in error message 7399 (Authentication failed...The workgroup information file is missing or opened exclusively). Why couldn't I read the records in the table? Is it because the server to which I added the linked server does not have Access loaded?
EXEC sp_addlinkedserver
@server = 'NPVData',
@srvproduct = 'OLE DB Provider for Jet',
@provider = 'Microsoft.Jet.OLEDB.4.0',
@datasrc = '\\garfield\apps\database\NPV\npvdata.mdb'
To check the connection, I ran this script:
Select *
From NPVData.npvdata.mdb.tblProposals
(tblProposals is a table in npvdata.mdb)
This resulted in error message 7399 (Authentication failed...The workgroup information file is missing or opened exclusively). Why couldn't I read the records in the table? Is it because the server to which I added the linked server does not have Access loaded?