Data Import & Export

How to Choose the Correct OLE DB Provider for Excel and Access

John WilsonJohn Wilson Oct 23, 2026 870 views

Question details

The user needs to identify the correct OLE DB provider version and connection string format to use with Excel 2025 and Access 2025 files.

How to Choose the Correct OLE DB Provider for Excel and Access
Product
Microsoft Excel and Access
Device & OS
not provided
Scenario
Connecting external applications or scripts to Excel and Access databases for data import and export.
Observed behavior
Establishing a successful data connection requires specifying the correct Microsoft ACE OLE DB provider version and ensuring architecture bitness matches.
Before you start

Verify whether your operating system and the host application running the query are 32-bit or 64-bit, as the OLE DB provider bitness must match perfectly.

Solution 1Recommended

Configure the Microsoft ACE OLE DB Provider

Set up the correct ACE OLE DB provider version and construct the connection string for your Excel or Access files.

The Microsoft ACE OLE DB provider is the modern standard for connecting to newer Excel (.xlsx) and Access (.accdb) files. Depending on the version of the Access Database Engine you have installed, you will use a provider version ranging from 12.0 to 16.0.

1
Identify the provider version

Determine which version of the Microsoft Access Database Engine is installed on your system. Typical versions used for modern Excel and Access files (including 2025) are Microsoft.ACE.OLEDB.12.0 or Microsoft.ACE.OLEDB.16.0.

2
Write the connection string

In your application's connection settings, start the connection string with the exact provider name. A standard connection string begins with 'Provider=Microsoft.ACE.OLEDB.12.0;' or 'Provider=Microsoft.ACE.OLEDB.16.0;' depending on your installed engine.

3
Specify the data source

Append the 'Data Source' parameter to your connection string, pointing to the absolute file path of your Excel or Access file (e.g., 'Data Source=C:\MyFolder\MyData.xlsx;').

4
Match application bitness

Download and install the Microsoft Access Database Engine Redistributable that matches your host application's architecture (32-bit or 64-bit) from the Microsoft Download Center.

Bitness Matching is Critical: A 64-bit application cannot use a 32-bit OLE DB provider. If you encounter a 'provider is not registered' error, it is almost always due to a bitness mismatch between your application and the installed engine.
Free Microsoft Office alternative

Manage Spreadsheet Data Easily with WPS Office

If configuring complex OLE DB providers and troubleshooting database engine bitness issues is slowing down your data management, consider WPS Office. It provides a lightweight, highly compatible environment to natively view, edit, and manage your Excel files without needing external driver configurations.

  1. 1. Download WPS Office: Visit the official WPS website and download the free installer for your Windows, Mac, or Linux operating system.
  2. 2. Install the software: Run the downloaded installer and follow the simple on-screen instructions to complete the setup.
  3. 3. Open your Excel data: Launch WPS Spreadsheet and open your .xlsx or .csv files directly to manage your data without configuring database drivers.
Fully compatible with Microsoft Excel formats including .xls, .xlsx, and .csvNo need to configure complex OLE DB providers for routine data managementLightweight application size with fast startup performanceIntuitive user interface for seamless migration from Microsoft OfficeFree to use with built-in PDF tools and cloud sync
microsoft office alternative - wps office

Frequently Asked Questions

What is the difference between Microsoft.Jet.OLEDB and Microsoft.ACE.OLEDB?

The Jet provider is an older engine used primarily for legacy .xls and .mdb formats. The ACE provider is the upgraded version that supports newer formats like .xlsx and .accdb introduced in Office 2007 and later.

Where can I download the Microsoft ACE OLE DB provider?

The ACE OLE DB provider is included in the Microsoft Access Database Engine Redistributable, which can be downloaded for free directly from the official Microsoft Download Center.

Why do I get a 'Provider cannot be found' error when connecting?

This error typically occurs if the Microsoft Access Database Engine is not installed on the machine running the code, or if there is a mismatch between the 32-bit/64-bit architecture of your application and the installed OLE DB provider.

Does the ACE OLE DB provider work with Office 2025 files?

Yes, you can use Microsoft.ACE.OLEDB.16.0 for the latest versions of Excel and Access, provided the corresponding version of the Access Database Engine is installed on your system.