“Unexpected error from external database driver (1). (Microsoft JET Database Engine)" after applying October security updates.

Published Jan 15 2019 05:40 PM 3,876 Views
First published on MSDN on Oct 18, 2017
UPDATE: As informed, the security patches with the fix was rolled-out yesterday 11/14. We would request you to test this and verify that the issue is addressed. If not, please let us know. Please find the information below,

Windows 2008

https://support.microsoft.com/en-us/help/4050795/unexpected-error-from-external-database-driver-erro...

Windows 7/2008 R2

-Monthly Roll-up - https://support.microsoft.com/en-us/help/4048957/windows-7-update-kb4048957

-Security-only update - https://support.microsoft.com/en-us/help/4048960/windows-7-update-kb4048960

Windows 2012

-Monthly Roll-up - https://support.microsoft.com/en-us/help/4048959/windows-server-2012-update-kb4048959

-Security-only update - https://support.microsoft.com/en-us/help/4048962/windows-server-2012-update-kb4048962

Windows 8.1 and 2012 R2

-Monthly Roll-up - https://support.microsoft.com/en-us/help/4048958/windows-81-update-kb4048958

-Security-only update - https://support.microsoft.com/en-us/help/4048961/windows-81-update-kb4048961

Windows 10 Fall (“November”) Update, version 1511

- https://support.microsoft.com/en-us/help/4048952

Windows 10 Anniversary Update, version 1607, and Server 2016

- https://support.microsoft.com/en-us/help/4048953

Windows 10 , version 1703

- https://support.microsoft.com/en-us/help/4048954/windows-10-update-kb4048954







We have been seeing a recent influx in cases where the JET provider is no longer able to connect after the October update. This update (released October 10 th , 2017) includes a security update release that inadvertently affects the JET provider. The update was kb4041678 and included in the patch kb4041681.  These patches affected the Operating System, which adversely has an issue with the following technologies: Microsoft Windows Search Component, Windows kernel-mode drivers, Microsoft Graphics Component, Internet Explorer, Windows kernel, Windows Wireless Networking, Microsoft JET Database Engine, and the Windows SMB Server. It is important to note that the changes were not to these technologies themselves.



Types of errors witnessed:
Unexpected error from external database driver (1). (Microsoft JET Database Engine)

[Microsoft][Driver ODBC Excel] Reserved error (-5016).

[Microsoft][ODBC Excel Driver]General Warning Unable to open registry key 'Temporary (volatile) Jet DSN for process



WORKAROUNDS & SOLUTION:



Approach 1:


Use Microsoft.ACE.OLEDB.12.0 or Microsoft.ACE.OLEDB.16.0: (Recommended)

The following updates where not intended to cause any issue with Microsoft Jet Database Engine 4.0, at the same time the product group developers were not verifying these updates would be compatible with Microsoft Jet Database Engine 4.0 data provider as it had been deprecated back in 2002:

https://support.microsoft.com/en-us/help/4041678/windows-7-update-kb4041678

https://support.microsoft.com/en-us/help/4041681/windows-7-update-kb4041681

As both articles suggest for the below workaround.



In all current known cases, using the ACE provider works to connect to the excel files in lieu of the JET provider. The following download is the most up to date version for the ACE provider:

Microsoft Access Database Engine 2016 Redistributable

https://www.microsoft.com/en-us/download/details.aspx?id=54920



When looking into this issue, the largest thing to note is: The JET provider has been deprecated as of 2002. The last changes were made to this in 2000. See the following article for more details.

Data Access Technologies Road Map

https://msdn.microsoft.com/en-us/library/ms810810.aspx

Excerpt:
Microsoft Jet Database Engine 4.0: Starting with version 2.6, MDAC no longer contains Jet components.
In other words, MDAC 2.6, 2.7, 2.8, and all future MDAC/WDAC releases do not contain Microsoft Jet, the Microsoft Jet OLE DB Provider, the ODBC Desktop Database Drivers, or Jet Data Access Objects (DAO).
The Microsoft Jet Database Engine 4.0 components entered a state of functional deprecation and sustained engineering and have not received feature level enhancements since becoming a part of Microsoft Windows in Windows 2000
.”


So, in short the JET provider has been working for a good 15 years after deprecation, but this most recent update caused a change which requires an update to how you are connecting to the Excel file. For the SSIS packages, we recommend pointing to the Excel by our Excel connector instead of using OLEDB.

You can locate the Excel Connector by opening up an SSIS package within SQL Server Data Tools. Create or go to an existing Data Flow task. You can see the Excel Source in the “Other Sources” Section:






When using JET, this is done through an OLEDB/ODBC source. You can use the same method for the ACE provider. The ACE provider will work, however it is not supported for use with programs such as SSIS, Management Studio, or other applications. Although this doesn’t tend to cause issues, it is important to note. That notwithstanding, the ACE drives provides the same functionality as the JET provider did. The only limitation I am aware of is the same you were encountering with JET which is that you can't have multiple users connecting to and modifying the Excel file.


Microsoft Access Database Engine 2016 Redistributable


https://www.microsoft.com/en-us/download/details.aspx?id=54920


Excerpt:



The Access Database Engine 2016 Redistributable is not intended:
4. To be used by a system service or server-side program where the code will run under a system account, or will deal with multiple users identities concurrently, or is highly reentrant and expects stateless behavior.
Examples would include a program that is run from task scheduler when no user is logged in, or a program called from server-side web application such as ASP.NET, or a distributed component running under COM+ services.



I understand that there are many users that don’t know how many packages might be experiencing this issue.  It is possible to look through your dtsx packages using the following method.

If you run a command prompt as an administrator, you can use the find command to look through the packages for the keyword JET.  This will state all the files it looks through, but you will see a connection manager result for the files that have this in them. If you have already updated the package from JET to ACE, then this will not show the connection manager and is not affected by this security update.

In a command prompt:

Find /I “Jet” “C:\SampleFolder\SamplePackage.dtsx”

Alternatively, you can search the whole folder at once:

Find /C /I “Jet” “C:\SampleFolder\%.dtsx”

For more information on the Find command:

Find: https://technet.microsoft.com/en-us/library/bb490906.aspx?f=255&MSPPError=-2147217396



Additionally after the installing and upgrading to ACE providers, you may run into the following error message,
The 'Microsoft.ACE.OLEDB.16.0' provider is not registered on the local machine
Or
The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine


If you are in a scenario where you have both 32-bit and 64-bit processing being performed on the same server that needs to use the ACE data provider, from the Microsoft standpoint, it is recommended to have 2 different servers (1 to process 32-bit mode and the other for 64-bit mode).

But there is an option (workaround) where you can have both the versions installed on the same machine by performing a “/quiet” install of these components from command line. To do so, download the desired AccessDatabaseEngine.exe or AccessDatabaeEngine_x64.exe to your PC, open an administrative command prompt, and provide the installation path and switch /quiet. Ex: C:\Files\AccessDatabaseEngine.exe /quiet. Please note that this approach is not recommended and haven't worked in few instances, so would request you to move to 2 different server approach if possible.



Approach 2:

Uninstall the security patch (Not recommended):

This patch seems to update Excel Jet connector from V4.00.9801.0 to v4.00.9801.1.

One of the workarounds is to uninstall the KB and it may fix the issue. Although, in some instances it may not help to resolve the issue.



Approach 3:

Registry change (Not recommended): [Request you to take a backup of the registry key before making any changes]

Another workaround would be to update the below registry key to point to an old copy of the DLL file:

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Jet\4.0\Engines\Excel\Win32]

To get an old copy of the DLL, uninstall the patch KB4041681, copy the DLL "msexcl40.dll" from C:\Windows\SysWOW64\msexcl40.dll to a new location say "C:\\msexcl\\msexcl40.dll".

You can now modify the registry key [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Jet\4.0\Engines\Excel\Win32] to point to the new DLL location "C:\\msexcl\\msexcl40.dll" (by default it’d be pointing to C:\Windows\SysWOW64\msexcl40.dll)



Other workarounds discussed online:

There is a public forum discussion where many customers found various ways to work around this issue.

ODBC Excel Driver Stopped Working with "Unexpected error from external database driver (1). (Microsoft JET Database Engine)"

https://social.msdn.microsoft.com/Forums/en-US/2feac7ff-3fbd-4d46-afdc-65341762f753/odbc-excel-d...



Solution:

The best recommended solution is to move to Microsoft ACE OLE DB provider.

Apart from this, Microsoft is working on a resolution and will provide an update in an upcoming release of the security patch. This is expected to be available in another 2-3 weeks or earlier. (Blog is updated with this information).  If this is business critical and you are still encountering any related issues, please reach out to the Microsoft Customer Services & Support(CSS) team.



DISCLAIMER:

THE ABOVE INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.



Authors:

Chrone Meade - Support Engineer, SQL Server BI Developer team, Microsoft

Jon Herman - Sr Support Engineer, SQL Server BI Developer team, Microsoft

Krishnakumar Rukmangathan – Support Escalation Engineer, SQL Server BI Developer team, Microsoft
%3CLINGO-SUB%20id%3D%22lingo-sub-319025%22%20slang%3D%22en-US%22%3E%E2%80%9CUnexpected%20error%20from%20external%20database%20driver%20(1).%20(Microsoft%20JET%20Database%20Engine)%22%20after%20applying%20October%20security%20updates.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-319025%22%20slang%3D%22en-US%22%3E%0A%20%26lt%3Bmeta%20http-equiv%3D%22Content-Type%22%20content%3D%22text%2Fhtml%3B%20charset%3DUTF-8%22%20%2F%26gt%3B%3CSTRONG%3EFirst%20published%20on%20MSDN%20on%20Oct%2018%2C%202017%20%3C%2FSTRONG%3E%20%3CBR%20%2F%3E%20%3CSTRONG%3E%20UPDATE%3A%20As%20informed%2C%20the%20security%20patches%20with%20the%20fix%20was%20rolled-out%20yesterday%2011%2F14.%20We%20would%20request%20you%20to%20test%20this%20and%20verify%20that%20the%20issue%20is%20addressed.%20If%20not%2C%20please%20let%20us%20know.%20Please%20find%20the%20information%20below%2C%20%3C%2FSTRONG%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CSTRONG%3E%20Windows%202008%20%3C%2FSTRONG%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CA%20href%3D%22https%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Fhelp%2F4050795%2Funexpected-error-from-external-database-driver-error-when-you-create-o%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Fhelp%2F4050795%2Funexpected-error-from-external-database-driver-error-when-you-create-o%3C%2FA%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CSTRONG%3E%20Windows%207%2F2008%20R2%20%3C%2FSTRONG%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20-Monthly%20Roll-up%20-%20%3CA%20href%3D%22https%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Fhelp%2F4048957%2Fwindows-7-update-kb4048957%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%20https%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Fhelp%2F4048957%2Fwindows-7-update-kb4048957%20%3C%2FA%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20-Security-only%20update%20-%20%3CA%20href%3D%22https%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Fhelp%2F4048960%2Fwindows-7-update-kb4048960%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%20https%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Fhelp%2F4048960%2Fwindows-7-update-kb4048960%20%3C%2FA%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CSTRONG%3E%20Windows%202012%20%3C%2FSTRONG%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20-Monthly%20Roll-up%20-%20%3CA%20href%3D%22https%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Fhelp%2F4048959%2Fwindows-server-2012-update-kb4048959%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%20https%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Fhelp%2F4048959%2Fwindows-server-2012-update-kb4048959%20%3C%2FA%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20-Security-only%20update%20-%20%3CA%20href%3D%22https%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Fhelp%2F4048962%2Fwindows-server-2012-update-kb4048962%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%20https%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Fhelp%2F4048962%2Fwindows-server-2012-update-kb4048962%20%3C%2FA%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CSTRONG%3E%20Windows%208.1%20and%202012%20R2%20%3C%2FSTRONG%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20-Monthly%20Roll-up%20-%20%3CA%20href%3D%22https%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Fhelp%2F4048958%2Fwindows-81-update-kb4048958%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%20https%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Fhelp%2F4048958%2Fwindows-81-update-kb4048958%20%3C%2FA%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20-Security-only%20update%20-%20%3CA%20href%3D%22https%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Fhelp%2F4048961%2Fwindows-81-update-kb4048961%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%20https%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Fhelp%2F4048961%2Fwindows-81-update-kb4048961%20%3C%2FA%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CSTRONG%3E%20Windows%2010%20Fall%20(%E2%80%9CNovember%E2%80%9D)%20Update%2C%20version%201511%20%3C%2FSTRONG%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20-%20%3CA%20href%3D%22https%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Fhelp%2F4048952%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%20https%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Fhelp%2F4048952%20%3C%2FA%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CSTRONG%3E%20Windows%2010%20Anniversary%20Update%2C%20version%201607%2C%20and%20Server%202016%20%3C%2FSTRONG%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20-%20%3CA%20href%3D%22https%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Fhelp%2F4048953%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%20https%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Fhelp%2F4048953%20%3C%2FA%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CSTRONG%3E%20Windows%2010%20%2C%20version%201703%20%3C%2FSTRONG%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20-%20%3CA%20href%3D%22https%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Fhelp%2F4048954%2Fwindows-10-update-kb4048954%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%20https%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Fhelp%2F4048954%2Fwindows-10-update-kb4048954%20%3C%2FA%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20We%20have%20been%20seeing%20a%20recent%20influx%20in%20cases%20where%20the%20JET%20provider%20is%20no%20longer%20able%20to%20connect%20after%20the%20October%20update.%20This%20update%20(released%20October%2010%20%3CSUP%3E%20th%20%3C%2FSUP%3E%20%2C%202017)%20includes%20a%20security%20update%20release%20that%20inadvertently%20affects%20the%20JET%20provider.%20The%20update%20was%20kb4041678%20and%20included%20in%20the%20patch%20kb4041681.%26nbsp%3B%20These%20patches%20affected%20the%20Operating%20System%2C%20which%20adversely%20has%20an%20issue%20with%20the%20following%20technologies%3A%20Microsoft%20Windows%20Search%20Component%2C%20Windows%20kernel-mode%20drivers%2C%20Microsoft%20Graphics%20Component%2C%20Internet%20Explorer%2C%20Windows%20kernel%2C%20Windows%20Wireless%20Networking%2C%20Microsoft%20JET%20Database%20Engine%2C%20and%20the%20Windows%20SMB%20Server.%20It%20is%20important%20to%20note%20that%20the%20changes%20were%20not%20to%20these%20technologies%20themselves.%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CSTRONG%3ETypes%20of%20errors%20witnessed%3A%20%3C%2FSTRONG%3E%20%3CBR%20%2F%3E%20%3CEM%3E%20Unexpected%20error%20from%20external%20database%20driver%20(1).%20(Microsoft%20JET%20Database%20Engine)%20%3C%2FEM%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CEM%3E%20%3C%2FEM%3E%20%3CEM%3E%20%5BMicrosoft%5D%5BDriver%20ODBC%20Excel%5D%20Reserved%20error%20(-5016).%20%3C%2FEM%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CEM%3E%20%3C%2FEM%3E%20%3CEM%3E%5BMicrosoft%5D%5BODBC%20Excel%20Driver%5DGeneral%20Warning%20Unable%20to%20open%20registry%20key%20'Temporary%20(volatile)%20Jet%20DSN%20for%20process%20%3CBR%20%2F%3E%20%3C%2FEM%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CSTRONG%3E%20WORKAROUNDS%20%26amp%3B%20SOLUTION%3A%20%3C%2FSTRONG%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CSTRONG%3E%20Approach%201%3A%20%3CBR%20%2F%3E%20%3C%2FSTRONG%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CSTRONG%3E%20Use%20Microsoft.ACE.OLEDB.12.0%20or%20Microsoft.ACE.OLEDB.16.0%3A%20(Recommended)%20%3C%2FSTRONG%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20The%20following%20updates%20where%20not%20intended%20to%20cause%20any%20issue%20with%20Microsoft%20Jet%20Database%20Engine%204.0%2C%20at%20the%20same%20time%20the%20product%20group%20developers%20were%20not%20verifying%20these%20updates%20would%20be%20compatible%20with%20Microsoft%20Jet%20Database%20Engine%204.0%20data%20provider%20as%20it%20had%20been%20deprecated%20back%20in%202002%3A%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CA%20href%3D%22https%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Fhelp%2F4041678%2Fwindows-7-update-kb4041678%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%20https%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Fhelp%2F4041678%2Fwindows-7-update-kb4041678%20%3C%2FA%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CA%20href%3D%22https%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Fhelp%2F4041681%2Fwindows-7-update-kb4041681%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%20https%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Fhelp%2F4041681%2Fwindows-7-update-kb4041681%20%3C%2FA%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20As%20both%20articles%20suggest%20for%20the%20below%20workaround.%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20In%20all%20current%20known%20cases%2C%20using%20the%20ACE%20provider%20works%20to%20connect%20to%20the%20excel%20files%20in%20lieu%20of%20the%20JET%20provider.%20The%20following%20download%20is%20the%20most%20up%20to%20date%20version%20for%20the%20ACE%20provider%3A%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CSTRONG%3E%20Microsoft%20Access%20Database%20Engine%202016%20Redistributable%20%3C%2FSTRONG%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CA%20href%3D%22https%3A%2F%2Fwww.microsoft.com%2Fen-us%2Fdownload%2Fdetails.aspx%3Fid%3D54920%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%20https%3A%2F%2Fwww.microsoft.com%2Fen-us%2Fdownload%2Fdetails.aspx%3Fid%3D54920%20%3C%2FA%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20When%20looking%20into%20this%20issue%2C%20the%20largest%20thing%20to%20note%20is%3A%20The%20JET%20provider%20has%20been%20deprecated%20as%20of%202002.%20The%20last%20changes%20were%20made%20to%20this%20in%202000.%20See%20the%20following%20article%20for%20more%20details.%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CSTRONG%3EData%20Access%20Technologies%20Road%20Map%20%3C%2FSTRONG%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CA%20href%3D%22https%3A%2F%2Fmsdn.microsoft.com%2Fen-us%2Flibrary%2Fms810810.aspx%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%20https%3A%2F%2Fmsdn.microsoft.com%2Fen-us%2Flibrary%2Fms810810.aspx%20%3C%2FA%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Excerpt%3A%20%3CBR%20%2F%3E%20%E2%80%9C%20%3CEM%3E%20Microsoft%20Jet%20Database%20Engine%204.0%3A%20Starting%20with%20version%202.6%2C%20MDAC%20no%20longer%20contains%20Jet%20components.%20%3CBR%20%2F%3E%20In%20other%20words%2C%20MDAC%202.6%2C%202.7%2C%202.8%2C%20and%20all%20future%20MDAC%2FWDAC%20releases%20do%20not%20contain%20Microsoft%20Jet%2C%20the%20Microsoft%20Jet%20OLE%20DB%20Provider%2C%20the%20ODBC%20Desktop%20Database%20Drivers%2C%20or%20Jet%20Data%20Access%20Objects%20(DAO).%20%3CBR%20%2F%3E%20The%20Microsoft%20Jet%20Database%20Engine%204.0%20components%20entered%20a%20state%20of%20functional%20deprecation%20and%20sustained%20engineering%20and%20have%20not%20received%20feature%20level%20enhancements%20since%20becoming%20a%20part%20of%20Microsoft%20Windows%20in%20Windows%202000%20%3C%2FEM%3E%20.%E2%80%9D%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20So%2C%20in%20short%20the%20JET%20provider%20has%20been%20working%20for%20a%20good%2015%20years%20after%20deprecation%2C%20but%20this%20most%20recent%20update%20caused%20a%20change%20which%20requires%20an%20update%20to%20how%20you%20are%20connecting%20to%20the%20Excel%20file.%20For%20the%20SSIS%20packages%2C%20we%20recommend%20pointing%20to%20the%20Excel%20by%20our%20Excel%20connector%20instead%20of%20using%20OLEDB.%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20You%20can%20locate%20the%20Excel%20Connector%20by%20opening%20up%20an%20SSIS%20package%20within%20SQL%20Server%20Data%20Tools.%20Create%20or%20go%20to%20an%20existing%20Data%20Flow%20task.%20You%20can%20see%20the%20Excel%20Source%20in%20the%20%E2%80%9COther%20Sources%E2%80%9D%20Section%3A%20%3CBR%20%2F%3E%20%3CEM%3E%20%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F68608i5D48E52B16A0A5F8%22%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3C%2FEM%3E%20%3CBR%20%2F%3E%3CP%3EWhen%20using%20JET%2C%20this%20is%20done%20through%20an%20OLEDB%2FODBC%20source.%20You%20can%20use%20the%20same%20method%20for%20the%20ACE%20provider.%20The%20ACE%20provider%20will%20work%2C%20however%20it%20is%20not%20supported%20for%20use%20with%20programs%20such%20as%20SSIS%2C%20Management%20Studio%2C%20or%20other%20applications.%20Although%20this%20doesn%E2%80%99t%20tend%20to%20cause%20issues%2C%20it%20is%20important%20to%20note.%20That%20notwithstanding%2C%20the%20ACE%20drives%20provides%20the%20same%20functionality%20as%20the%20JET%20provider%20did.%20The%20only%20limitation%20I%20am%20aware%20of%20is%20the%20same%20you%20were%20encountering%20with%20JET%20which%20is%20that%20you%20can't%20have%20multiple%20users%20connecting%20to%20and%20modifying%20the%20Excel%20file.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CB%3E%20Microsoft%20Access%20Database%20Engine%202016%20Redistributable%20%3C%2FB%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.microsoft.com%2Fen-us%2Fdownload%2Fdetails.aspx%3Fid%3D54920%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%20https%3A%2F%2Fwww.microsoft.com%2Fen-us%2Fdownload%2Fdetails.aspx%3Fid%3D54920%20%3C%2FA%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EExcerpt%3A%3C%2FP%3E%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CEM%3EThe%20Access%20Database%20Engine%202016%20Redistributable%20is%20not%20intended%3A%20%3CBR%20%2F%3E%20%3C%2FEM%3E%20%3CEM%3E%204.%20To%20be%20used%20by%20a%20system%20service%20or%20server-side%20program%20where%20the%20code%20will%20run%20under%20a%20system%20account%2C%20or%20will%20deal%20with%20multiple%20users%20identities%20concurrently%2C%20or%20is%20highly%20reentrant%20and%20expects%20stateless%20behavior.%20%3CBR%20%2F%3E%20Examples%20would%20include%20a%20program%20that%20is%20run%20from%20task%20scheduler%20when%20no%20user%20is%20logged%20in%2C%20or%20a%20program%20called%20from%20server-side%20web%20application%20such%20as%20ASP.NET%2C%20or%20a%20distributed%20component%20running%20under%20COM%2B%20services.%20%3C%2FEM%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20I%20understand%20that%20there%20are%20many%20users%20that%20don%E2%80%99t%20know%20how%20many%20packages%20might%20be%20experiencing%20this%20issue.%26nbsp%3B%20It%20is%20possible%20to%20look%20through%20your%20dtsx%20packages%20using%20the%20following%20method.%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20If%20you%20run%20a%20command%20prompt%20as%20an%20administrator%2C%20you%20can%20use%20the%20find%20command%20to%20look%20through%20the%20packages%20for%20the%20keyword%20JET.%26nbsp%3B%20This%20will%20state%20all%20the%20files%20it%20looks%20through%2C%20but%20you%20will%20see%20a%20connection%20manager%20result%20for%20the%20files%20that%20have%20this%20in%20them.%20If%20you%20have%20already%20updated%20the%20package%20from%20JET%20to%20ACE%2C%20then%20this%20will%20not%20show%20the%20connection%20manager%20and%20is%20not%20affected%20by%20this%20security%20update.%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20In%20a%20command%20prompt%3A%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Find%20%2FI%20%E2%80%9CJet%E2%80%9D%20%E2%80%9CC%3A%5CSampleFolder%5CSamplePackage.dtsx%E2%80%9D%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Alternatively%2C%20you%20can%20search%20the%20whole%20folder%20at%20once%3A%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Find%20%2FC%20%2FI%20%E2%80%9CJet%E2%80%9D%20%E2%80%9CC%3A%5CSampleFolder%5C%25.dtsx%E2%80%9D%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20For%20more%20information%20on%20the%20Find%20command%3A%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CSTRONG%3E%20Find%3A%20%3C%2FSTRONG%3E%20%3CA%20href%3D%22https%3A%2F%2Ftechnet.microsoft.com%2Fen-us%2Flibrary%2Fbb490906.aspx%3Ff%3D255%26amp%3BMSPPError%3D-2147217396%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%20https%3A%2F%2Ftechnet.microsoft.com%2Fen-us%2Flibrary%2Fbb490906.aspx%3Ff%3D255%26amp%3BMSPPError%3D-2147217396%20%3C%2FA%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Additionally%20after%20the%20installing%20and%20upgrading%20to%20ACE%20providers%2C%20you%20may%20run%20into%20the%20following%20error%20message%2C%20%3CBR%20%2F%3E%20%3CEM%3E%20The%20'Microsoft.ACE.OLEDB.16.0'%20provider%20is%20not%20registered%20on%20the%20local%20machine%20%3C%2FEM%3E%20%3CBR%20%2F%3E%20%3CEM%3E%20Or%20%3C%2FEM%3E%20%3CBR%20%2F%3E%20%3CEM%3E%20The%20'Microsoft.ACE.OLEDB.12.0'%20provider%20is%20not%20registered%20on%20the%20local%20machine%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3C%2FEM%3E%20%3CBR%20%2F%3E%20If%20you%20are%20in%20a%20scenario%20where%20you%20have%20both%2032-bit%20and%2064-bit%20processing%20being%20performed%20on%20the%20same%20server%20that%20needs%20to%20use%20the%20ACE%20data%20provider%2C%20from%20the%20Microsoft%20standpoint%2C%20it%20is%20recommended%20to%20have%202%20different%20servers%20(1%20to%20process%2032-bit%20mode%20and%20the%20other%20for%2064-bit%20mode).%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20But%20there%20is%20an%20option%20(workaround)%20where%20you%20can%20have%20both%20the%20versions%20installed%20on%20the%20same%20machine%20by%20performing%20a%20%E2%80%9C%2Fquiet%E2%80%9D%20install%20of%20these%20components%20from%20command%20line.%20To%20do%20so%2C%20download%20the%20desired%20AccessDatabaseEngine.exe%20or%20AccessDatabaeEngine_x64.exe%20to%20your%20PC%2C%20open%20an%20administrative%20command%20prompt%2C%20and%20provide%20the%20installation%20path%20and%20switch%20%2Fquiet.%20Ex%3A%20C%3A%5CFiles%5CAccessDatabaseEngine.exe%20%2Fquiet.%20Please%20note%20that%20this%20approach%20is%20not%20recommended%20and%20haven't%20worked%20in%20few%20instances%2C%20so%20would%20request%20you%20to%20move%20to%202%20different%20server%20approach%20if%20possible.%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CSTRONG%3EApproach%202%3A%20%3C%2FSTRONG%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CSTRONG%3E%20Uninstall%20the%20security%20patch%20(Not%20recommended)%3A%20%3C%2FSTRONG%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20This%20patch%20seems%20to%20update%20Excel%20Jet%20connector%20from%20V4.00.9801.0%20to%20v4.00.9801.1.%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20One%20of%20the%20workarounds%20is%20to%20uninstall%20the%20KB%20and%20it%20may%20fix%20the%20issue.%20Although%2C%20in%20some%20instances%20it%20may%20not%20help%20to%20resolve%20the%20issue.%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CSTRONG%3EApproach%203%3A%20%3C%2FSTRONG%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CSTRONG%3E%20%3C%2FSTRONG%3E%20%3CSTRONG%3E%20Registry%20change%20(Not%20recommended)%3A%20%5BRequest%20you%20to%20take%20a%20backup%20of%20the%20registry%20key%20before%20making%20any%20changes%5D%20%3C%2FSTRONG%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CSTRONG%3E%20%3C%2FSTRONG%3E%20Another%20workaround%20would%20be%20to%20update%20the%20below%20registry%20key%20to%20point%20to%20an%20old%20copy%20of%20the%20DLL%20file%3A%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%5BHKEY_LOCAL_MACHINE%5CSOFTWARE%5CWow6432Node%5CMicrosoft%5CJet%5C4.0%5CEngines%5CExcel%5CWin32%5D%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20To%20get%20an%20old%20copy%20of%20the%20DLL%2C%20uninstall%20the%20patch%20KB4041681%2C%20copy%20the%20DLL%20%22msexcl40.dll%22%20from%20C%3A%5CWindows%5CSysWOW64%5Cmsexcl40.dll%20to%20a%20new%20location%20say%20%22C%3A%5C%5Cmsexcl%5C%5Cmsexcl40.dll%22.%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20You%20can%20now%20modify%20the%20registry%20key%20%5BHKEY_LOCAL_MACHINE%5CSOFTWARE%5CWow6432Node%5CMicrosoft%5CJet%5C4.0%5CEngines%5CExcel%5CWin32%5D%20to%20point%20to%20the%20new%20DLL%20location%20%22C%3A%5C%5Cmsexcl%5C%5Cmsexcl40.dll%22%20(by%20default%20it%E2%80%99d%20be%20pointing%20to%20C%3A%5CWindows%5CSysWOW64%5Cmsexcl40.dll)%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CSTRONG%3E%20Other%20workarounds%20discussed%20online%3A%20%3C%2FSTRONG%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20There%20is%20a%20public%20forum%20discussion%20where%20many%20customers%20found%20various%20ways%20to%20work%20around%20this%20issue.%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CSTRONG%3E%20ODBC%20Excel%20Driver%20Stopped%20Working%20with%20%22Unexpected%20error%20from%20external%20database%20driver%20(1).%20(Microsoft%20JET%20Database%20Engine)%22%20%3C%2FSTRONG%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CA%20href%3D%22https%3A%2F%2Fsocial.msdn.microsoft.com%2FForums%2Fen-US%2F2feac7ff-3fbd-4d46-afdc-65341762f753%2Fodbc-excel-driver-stopped-working-with-unexpected-error-from-external-database-driver-1%3Fforum%3Dsqldataaccess%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%20https%3A%2F%2Fsocial.msdn.microsoft.com%2FForums%2Fen-US%2F2feac7ff-3fbd-4d46-afdc-65341762f753%2Fodbc-excel-driver-stopped-working-with-unexpected-error-from-external-database-driver-1%3Fforum%3Dsqldataaccess%20%3C%2FA%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CSTRONG%3E%20Solution%3A%20%3C%2FSTRONG%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CSTRONG%3E%20%3C%2FSTRONG%3E%20The%20best%20recommended%20solution%20is%20to%20move%20to%20Microsoft%20ACE%20OLE%20DB%20provider.%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Apart%20from%20this%2C%20Microsoft%20is%20working%20on%20a%20resolution%20and%20will%20provide%20an%20update%20in%20an%20upcoming%20release%20of%20the%20security%20patch.%20This%20is%20expected%20to%20be%20available%20in%20another%202-3%20weeks%20or%20earlier.%20(Blog%20is%20updated%20with%20this%20information).%26nbsp%3B%20If%20this%20is%20business%20critical%20and%20you%20are%20still%20encountering%20any%20related%20issues%2C%20please%20reach%20out%20to%20the%20Microsoft%20Customer%20Services%20%26amp%3B%20Support(CSS)%20team.%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CSTRONG%3EDISCLAIMER%3A%20%3C%2FSTRONG%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20THE%20ABOVE%20INFORMATION%20IS%20PROVIDED%20%22AS%20IS%22%20WITHOUT%20WARRANTY%20OF%20ANY%20KIND%2C%20EITHER%20EXPRESSED%20OR%20IMPLIED%2C%20INCLUDING%20BUT%20NOT%20LIMITED%20TO%20THE%20IMPLIED%20WARRANTIES%20OF%20MERCHANTABILITY%20AND%2FOR%20FITNESS%20FOR%20A%20PARTICULAR%20PURPOSE.%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CSTRONG%3EAuthors%3A%20%3C%2FSTRONG%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Chrone%20Meade%20-%20Support%20Engineer%2C%20SQL%20Server%20BI%20Developer%20team%2C%20Microsoft%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Jon%20Herman%20-%20Sr%26nbsp%3BSupport%20Engineer%2C%20SQL%20Server%20BI%20Developer%20team%2C%20Microsoft%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Krishnakumar%20Rukmangathan%20%E2%80%93%20Support%20Escalation%20Engineer%2C%20SQL%20Server%20BI%20Developer%20team%2C%20Microsoft%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-319025%22%20slang%3D%22en-US%22%3EFirst%20published%20on%20MSDN%20on%20Oct%2018%2C%202017%20UPDATE%3A%20As%20informed%2C%20the%20security%20patches%20with%20the%20fix%20was%20rolled-out%20yesterday%2011%2F14.%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-319025%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EJET%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Epatching%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Version history
Last update:
‎Jan 15 2019 05:40 PM
Updated by: