r/SQLServer • • 27d ago

Question Mdac - ms 365 runtime error

Solved - access 365 runtime doesn't work. I installed clean version of MDAC 2016, even it's not supported and it works. Thank you for help!

hey guys, does anybody had an issue with loading excel sheets(xls,xlsx) into Microsoft SQL Server Developer (64-bit) 16.0.4305.5 through Microsoft.ACE.OLEDB.16.0? , installed MDAC 2016, then Microsoft 365 Access Runtime only 64bit, windows server 2025 Standard Edition. The problem is when I use OPENROWSET SELECT * FROM OPENROWSET ('Microsoft.ACE.OLEDB.16.0', 'Excel 12.0 Xml;HDR=YES;IMEX=1;Database=\ \SERVER.DOMAIN .INT\DWH \KFILE.xlsx', ' SELECT TOP 1 * FROM [SHEET$] ') SQL Server fails. SQL Server 2022 Import and Export Data (64-bit) works Msg 10054, Level 20, State 0, Line 0 A transport-level error has occurred when receiving results from the server. (provider: TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.)

EXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.16.0', N'AllowInProcess', 1; EXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.16.0', N'DynamicParameters', 1; EXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.16.0', N'DisallowAdHocAccess', 0; Ad Hoc Distributed Queries set to 1

Edit:

Load through UNC path Powershell works, also through domain sql user. Everything worked till around June/July 2026( for 6years worked) then after September every restart SQL Server got message: System.Runtime.InteropServices.SEHException: External component has thrown an exception and Sql server service fail. When I got this exception, somethimes it's okay, sometimes it needs more service restarts, but it works.

Server where OS is Windows Server 2022 Datacenter, I return to the version C2R where it worked , but didn't 

I'm sysadmin, have all rights to the folder.

Also tech user has all needed permission, also to temp folders

Provider       : Microsoft.ACE.OLEDB.12.0

Architecture   : x64

Registered     : True

CLSID          : {3BE786A0-0366-4F5C-9434-25CF162E475E}

DLLPath        : C:\Program Files\Microsoft Office\root\VFS\ProgramFilesCommonX64\Microsoft Shared\Office16\ACEOLEDB.DLL

DLLExists      : True

FileVersion    : 16.0.20228.20014

ProductVersion : 16.0.20228.20014

SHA256         : 4BEB8EFCC966703858A1CB19CABDBF1A63468CC349C2CDCE388EE3C629EB8B1C

Provider       : Microsoft.ACE.OLEDB.12.0

Architecture   : x86

Registered     : False

CLSID          : 

DLLPath        : 

DLLExists      : False

FileVersion    : 

ProductVersion : 

SHA256         : 

Provider       : Microsoft.ACE.OLEDB.16.0

Architecture   : x64

Registered     : True

CLSID          : {3BE786A2-0366-4F5C-9434-25CF162E475E}

DLLPath        : C:\Program Files\Microsoft Office\root\VFS\ProgramFilesCommonX64\Microsoft Shared\Office16\ACEOLEDB.DLL

DLLExists      : True

FileVersion    : 16.0.20228.20014

ProductVersion : 16.0.20228.20014

SHA256         : 4BEB8EFCC966703858A1CB19CABDBF1A63468CC349C2CDCE388EE3C629EB8B1C

Provider       : Microsoft.ACE.OLEDB.16.0

Architecture   : x86

Registered     : False

CLSID          : 

DLLPath        : 

DLLExists      : False

FileVersion    : 

ProductVersion : 

SHA256         : 

=== Office / Access Runtime (Uninstall entries) ===

DisplayName                                    DisplayVersion   PSChildName                           

-----------                                    --------------   -----------                           

Microsoft Access Runtime 365 - en-us           16.0.20228.20276 AccessRuntimeRetail - en-us           

Office 16 Click-to-Run Extensibility Component 16.0.20228.20276 {90160000-008C-0000-1000-0000000FF1CE}

=== Click-to-Run ===

VersionToReport   : 16.0.20228.20276

Platform          : x64

ProductReleaseIds : AccessRuntimeRetail

CDNBaseUrl        : http://officecdn.microsoft.com/pr/55336b82-a18d-4dd6-b5f6-9e5095c314a6

UpdateChannel     : http://officecdn.microsoft.com/pr/55336b82-a18d-4dd6-b5f6-9e5095c314a6

installed version through ODT

<Configuration>

  <Add OfficeClientEdition="64"

Channel="MonthlyEnterprise"

Version="16.0.20228.20276"

SourcePath="c:\ODT\Office_MEC"

AllowCdnFallback="FALSE">

<Product ID="AccessRuntimeRetail">

<Language ID="en-us" />

</Product>

  </Add>

  <Updates Enabled="FALSE" />

  <Display Level="None" AcceptEULA="TRUE" />

  <Logging Level="Standard" Path="c:\\\\ODT\\\\Logs" />

</Configuration>

0 Upvotes

7 comments sorted by

•

u/AutoModerator 27d ago

After your question has been solved /u/sqlguy007, please reply to the helpful user's comment with the phrase "Solution verified".

This will not only award a point to the contributor for their assistance but also update the post's flair to "Solved".


I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/dbrownems ‪ ‪Microsoft Employee ‪ 26d ago

That's not supported, and it apparently crashing your SQL Server.

See:

"

The Access Database Engine 2016 Redistributable is not intended:

  1. As a general replacement for Jet (If you need a general replacement for Jet you should use SQL Server Express Edition).
  2. As a replacement for the Jet OLEDB Provider in server-side applications.
  3. As a general word processing, spreadsheet or database management system -To be used as a way to create files. (You can use Microsoft Office or Office automation to create the files that Microsoft Office supports.)
  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.

"

Download Microsoft Access Database Engine 2016 Redistributable from Official Microsoft Download Center

Use it from an SSIS package running in your logged-in desktop session.

0

u/sqlguy007 26d ago

Load through UNC path Powershell works, also through domain sql user. Everything worked till around June/July 2026( for 6years worked) then after September every restart SQL Server got message: System.Runtime.InteropServices.SEHException: External component has thrown an exception and Sql server service fail. When I got this exception, something it's okay, sometimes it need more service restarts, but it works. Server where OS is Windows Server 2022 Datacenter, I return to the version C2R where it worked , but didn't  I'm sysadmin, have all rights to the folder. Also tech user has all needed permission, also to temp folders

Provider       : Microsoft.ACE.OLEDB.12.0 Architecture   : x64 Registered     : True CLSID          : {3BE786A0-0366-4F5C-9434-25CF162E475E} DLLPath        : C:\Program Files\Microsoft Office\root\VFS\ProgramFilesCommonX64\Microsoft Shared\Office16\ACEOLEDB.DLL DLLExists      : True FileVersion    : 16.0.20228.20014 ProductVersion : 16.0.20228.20014 SHA256         : 4BEB8EFCC966703858A1CB19CABDBF1A63468CC349C2CDCE388EE3C629EB8B1C Provider       : Microsoft.ACE.OLEDB.12.0 Architecture   : x86 Registered     : False CLSID          :  DLLPath        :  DLLExists      : False FileVersion    :  ProductVersion :  SHA256         :  Provider       : Microsoft.ACE.OLEDB.16.0 Architecture   : x64 Registered     : True CLSID          : {3BE786A2-0366-4F5C-9434-25CF162E475E} DLLPath        : C:\Program Files\Microsoft Office\root\VFS\ProgramFilesCommonX64\Microsoft Shared\Office16\ACEOLEDB.DLL DLLExists      : True FileVersion    : 16.0.20228.20014 ProductVersion : 16.0.20228.20014 SHA256         : 4BEB8EFCC966703858A1CB19CABDBF1A63468CC349C2CDCE388EE3C629EB8B1C Provider       : Microsoft.ACE.OLEDB.16.0 Architecture   : x86 Registered     : False CLSID          :  DLLPath        :  DLLExists      : False FileVersion    :  ProductVersion :  SHA256         :  === Office / Access Runtime (Uninstall entries) === DisplayName                                    DisplayVersion   PSChildName                            -----------                                    --------------   -----------                            Microsoft Access Runtime 365 - en-us           16.0.20228.20276 AccessRuntimeRetail - en-us            Office 16 Click-to-Run Extensibility Component 16.0.20228.20276 {90160000-008C-0000-1000-0000000FF1CE} === Click-to-Run ===

VersionToReport   : 16.0.20228.20276 Platform          : x64 ProductReleaseIds : AccessRuntimeRetail CDNBaseUrl        : http://officecdn.microsoft.com/pr/55336b82-a18d-4dd6-b5f6-9e5095c314a6 UpdateChannel     : http://officecdn.microsoft.com/pr/55336b82-a18d-4dd6-b5f6-9e5095c314a6 installed version through ODT <Configuration>   <Add OfficeClientEdition="64"        Channel="MonthlyEnterprise"        Version="16.0.20228.20276"        SourcePath="c:\ODT\Office_MEC"        AllowCdnFallback="FALSE">     <Product ID="AccessRuntimeRetail">       <Language ID="en-us" />     </Product>   </Add>   <Updates Enabled="FALSE" />   <Display Level="None" AcceptEULA="TRUE" />   <Logging Level="Standard" Path="c:\ODT\Logs" /> </Configuration>

1

u/krikrat 25d ago

My bet is you need to get updated drivers due to all the hardening.

Microsoft Patch Tuesday (September 2026)

• Microsoft rolled out a massive cumulative update package covering roughly 970+ CVEs (including over 100 critical ratings). • Key active exploits addressed included elevation-of-privilege issues like CVE-2026-81963 (Windows Update Stack) and CVE-2026-85880. • Extensive updates also hit Windows SKUs, Exchange, SQL Server, .NET, and Azure

1

u/sqlguy007 25d ago

Thank you, I have to ask server admins, but I know that servers and things around are updated once per month

1

u/CanProfessional766 24d ago

The SEHException is particularly concerning because it indicates a failure in an external component. I’d check the SQL Server crash dump and Windows Event Viewer to identify the faulting DLL, then test the latest supported Access Runtime version in a non-production environment. I’d also avoid enabling AllowInProcess on production until the cause is clear, as a provider crash can bring down SQL Server