Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to determine if ACE or JET on windows machine using .net?

Tags:

c#

.net

jet

How to determine (for a machine running windows xp/vista/7) whether ACE or JET is installed, so I can use an appropiate connection string to connect to a access database.

like image 422
willem Avatar asked Mar 16 '11 12:03

willem


People also ask

How do I know if my Microsoft ACE Oledb 12.0 Driver is installed?

Navigate to Start, and enter C:\Windows\System32\odbcad32.exe into the Search programs and files field. When the ODBC Administrator opens, click the Drivers tab and look for Microsoft Excel Driver or Microsoft Access Driver. If these drivers are present, this confirms the existence of 64-bit ACE components.

How do I know what version of Microsoft Jet Oledb I have?

Right-click on the file, nzoledb. dll, and select Properties. The version number is displayed either in the Product Version field on the Details tab or under the Version tab, depending on your OS. Note: The System32 directory contains either a 32-bit driver (on a 32-bit system) or a 64-bit driver (on a 64-bit system).

What is the latest version of Microsoft ACE Oledb?

Microsoft OLE DB Driver 19.2. 0 for SQL Server is the latest general availability (GA) version. The Microsoft OLE DB Driver 19 for SQL Server will install side by side with Microsoft OLE DB Driver 18 for SQL Server.


1 Answers

There is a registry key you can check. It is at HKCR\Microsoft.ACE.OLEDB.12.0. You can read it using the RegistryKey class.

like image 141
Please treat your mods well. Avatar answered Oct 07 '22 14:10

Please treat your mods well.