Archive
Archive for April 10, 2015
Error Msg 7302, Cannot create an instance of OLE DB provider “Microsoft.Jet.OLEDB.4.0” for linked server – MSDN TSQL forum
April 10, 2015
Leave a comment
–> Question:
Below is the script to export data from Access 2003 using SQL server 2012 in SQL Server Management Studio:
EXEC sp_addlinkedserver @server = 'SNE_SNAP2014', @provider = 'Microsoft.Jet.OLEDB.4.0', @srvproduct = 'OLE DB Provider for Jet', @datasrc = 'T:\Data Management\Project -SNAP SNE\SNE SNAP2014 T-Drive.mdb' GO
this results into following error:
Msg 7302, Level 16, State 1, Line 2
Cannot create an instance of OLE DB provider “Microsoft.Jet.OLEDB.4.0” for linked server “SNE_SNAP2014”.
–> My Answer:
Please make sure that both Access & SQL Server 2012 should be on same 32 or 64 bit architecture.
Check this blog post for resolution and more info: https://sqlwithmanoj.com/2012/07/10/querying-excel-2010-from-sql-server-in-64-bit-environment/
Ref Link.
Categories: SQL Errors, SQL Server Questions
Linked Server, MSDN TSQL forum