首页 > 解决方案 > 选择 Excel 文件作为数据源时 SQL Server 导入和导出向导崩溃

问题描述

我经常使用导入向导将 Excel 数据插入 SQL 中的表中,突然导入向导崩溃了。我选择了一个 Excel 文件,第二次点击 Next,向导锁定,然后在大约 30 秒后自行关闭。我已经完全重新安装了 SSMS 并运行了 Office 2019 的修复,但无济于事。

我检查了事件查看器,它会产生 3 个错误。第一个是带有以下详细信息的 .NET 运行时错误:

Application: DTSWizard.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: exception code c06d007e, exception address 769AA6F2

接下来的 2 个都是非常相似的应用程序错误。第一个是:

Faulting application name: DTSWizard.exe, version: 15.0.2000.162, time stamp: 0x606e8728
Faulting module name: KERNELBASE.dll, version: 10.0.19041.1023, time stamp: 0xcbf6f7d1
Exception code: 0xc06d007e
Fault offset: 0x0012a6f2
Faulting process ID: 0x244
Faulting application start time: 0x01d767797bed8aa2
Faulting application path: C:\Program Files (x86)\Microsoft SQL Server Management Studio 18\Common7\IDE\CommonExtensions\Microsoft\SSIS\150\Binn\DTSWizard.exe
Faulting module path: C:\Windows\System32\KERNELBASE.dll
Report ID: 287c5a71-552a-4d49-8594-456dd32cf17c
Faulting package full name: 
Faulting package-relative application ID: 

第二个几乎相同,除了异常代码是 0xc000041d。

我已经测试了导出到 excel 并且效果很好。我尝试的每个excel文件都会发生这种情况。

标签: sql-serverexcelimportcrashssms

解决方案


弄清楚了。我不得不重新安装 Access 数据库引擎,但我收到有关安装“Office 16 即点即用扩展性组件 64 位注册”的错误消息。找到下面的步骤来卸载它,然后在安装 Access Database Engine 后全部排序。

1. Press Win + R to open the Run window, type "installer" and click Enter to open the folder in File Explorer.
2. Add the column "Subject". Right click the column headers, then click More and select Subject
3. Sort on the Subject column and scroll down until you locate the name "Office 16 Click-to-Run Extensibility Component 64-bit Registration".
4. Right click the MSI file and choose uninstall.

推荐阅读