Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Distributed Transactions for Microsoft.ACE.OLEDB 12.0

$
0
0

Hi Anyone,

I am trying to import data from sql server to excel using microsoft.ace.oledb.12.0.

insert into openrowset('Microsoft.ACE.OLEDB.12.0','Excel 12.0;Database=D:\\Testing.xlsx;','Select FileName,Description from [Sheet1$]') Select FileName,Description from dbo.table1

If I run the above script directly on sql server query window works just fine but if the script run externally (through pyodbc python), then I got error saying that 

"OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "(null)" does not support the required transaction interface."

I did some investigation to see what cause that error to happen by using sql profiler and found out that "ITransactionLocal interface is not supported by ace.oledb.12.0".

Therefore, I was just wondering if there's a workaround to make this working?

Thanks in advance

KF


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>