Environment is : SQL Server 2012 and Access 2000 database
Here is my code:
IF OBJECT_ID('tempdb..#temptable') IS NOT NULL DROP TABLE #temptable;
create table #temptable
(
[LastName] varchar(50)
,[FirstName] varchar(50)
)
INSERT INTO #temptable
Select tbl1.LastName, tbl1.FirstName FROM OPENDATASOURCE(
'Microsoft.Jet.OLEDB.4.0',
'Data Source="\\someserver\test.mdb";
User ID=;Password='
)...MSaccessTable tbl1
Getting: Ad hoc access to OLE DB provider 'Microsoft.Jet.OLEDB.4.0' has been denied. You must access this provider through a linked server.
Is there any other way to load access table without setting up Linked Server?
Any help will be greatly appreciated.
Here is my code:
IF OBJECT_ID('tempdb..#temptable') IS NOT NULL DROP TABLE #temptable;
create table #temptable
(
[LastName] varchar(50)
,[FirstName] varchar(50)
)
INSERT INTO #temptable
Select tbl1.LastName, tbl1.FirstName FROM OPENDATASOURCE(
'Microsoft.Jet.OLEDB.4.0',
'Data Source="\\someserver\test.mdb";
User ID=;Password='
)...MSaccessTable tbl1
Getting: Ad hoc access to OLE DB provider 'Microsoft.Jet.OLEDB.4.0' has been denied. You must access this provider through a linked server.
Is there any other way to load access table without setting up Linked Server?
Any help will be greatly appreciated.