ADO Tools

From AutoIt Wiki
Revision as of 10:29, 9 January 2014 by Rt01 (talk | contribs) (Created page with "= List all installed OLE DB providers = <syntaxhighlight lang="autoit"> Global $sOutput, $oRegistry, $oKey, $sKey = "HKCR\CLSID", $i = 1 While 1 $sSubKey = RegEnumKey($sKe...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

List all installed OLE DB providers

Global $sOutput, $oRegistry, $oKey, $sKey = "HKCR\CLSID", $i = 1
While 1
    $sSubKey = RegEnumKey($sKey, $i)
    If @error Then ExitLoop
    $sKeyValue = RegRead($sKey & "\" & $sSubKey, "OLEDB_SERVICES")
    If @error = 0 Then ConsoleWrite($sKey & "\" & $sSubKey & @TAB & RegRead($sKey & "\" & $sSubKey, "") & @TAB & RegRead($sKey & "\" & $sSubKey & "\OLE DB Provider", "") & @LF)
    $i = $i + 1
WEnd

Result:

OLE DB Providers