Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get a list of installed OLE DB providers?

Microsoft Excel allows import of data from "Other Sources". One of the options is to use an OLE DB provider.

How to get a list of available OLE DB providers?

like image 620
kevinarpe Avatar asked Jun 16 '16 03:06

kevinarpe


People also ask

What is Microsoft OLE DB provider?

An OLE DB provider is a software component that enables an OLE DB consumer to interact with a data source. OLE DB providers are analogous to ODBC drivers, JDBC drivers, and ADO.NET data providers.


1 Answers

If you have powershell available, just paste this into a powershell command prompt:

foreach ($provider in [System.Data.OleDb.OleDbEnumerator]::GetRootEnumerator()) {     $v = New-Object PSObject             for ($i = 0; $i -lt $provider.FieldCount; $i++)      {         Add-Member -in $v NoteProperty $provider.GetName($i) $provider.GetValue($i)     }     $v } 

Credits and more advanced usage: http://dbadailystuff.com/list-all-ole-db-providers-in-powershell

like image 156
Steinar Herland Avatar answered Oct 06 '22 04:10

Steinar Herland