Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I use an ADO.NET managed provider in Excel?

I have an ADO.NET Managed Data Provider that is registered in machine.config in DbProviderFactory - It is available for use from, say, Analysis Services, so I know it is correctly registered.

However, I need to be able to query the managed provider from Excel, but the managed provider doesn't appear as a choice from Data Link Properties | All Ole Db Providers.

How do I get an ADO.NET Managed Data Provider to appear there, or is there another technique I need to use?

Thanks in advance, Eli.

like image 350
Eli Avatar asked Dec 29 '25 02:12

Eli


2 Answers

Turns out there is no way to directly use an ADO.NET provider in Excel.

Had to write an OLE DB provider (in ATL C++ no less) to bridge the two - that was fun...

like image 87
Eli Avatar answered Dec 31 '25 16:12

Eli


It is a late post, but now there is an ADO.NET way to this - http://support.microsoft.com/kb/316934#12

like image 39
Ognyan Dimitrov Avatar answered Dec 31 '25 17:12

Ognyan Dimitrov



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!