简体   繁体   English

为什么使用 .xlsx (Microsoft Excel 2016/2013/2010) 文件进行数据导入,而不是将 .xlsx 保存为 .xls(Microsoft Excel 97-2003)?

[英]Why use .xlsx (Microsoft Excel 2016/2013/2010) file for data import instead of saving .xlsx as .xls(Microsoft Excel 97-2003)?

/* This question is informational. /* 这个问题是信息性的。 I had to post it as question since I couldn't comment under others' replies to the questions associated with 3 errors below.我不得不将其作为问题发布,因为我无法在其他人对与以下 3 个错误相关的问题的答复下发表评论。 These errors occurs in SSIS and SQL Server Import and Export wizard.这些错误发生在 SSIS 和 SQL Server 导入和导出向导中。 */ */

  1. The 'Microsoft.ACE.OLEDB.16.0' provider is not registered on the local machine. “Microsoft.ACE.OLEDB.16.0”提供程序未在本地计算机上注册。 (System.Data) (系统.数据)
  2. The 'Microsoft.ACE.OLEDB.15.0' provider is not registered on the local machine. “Microsoft.ACE.OLEDB.15.0”提供程序未在本地计算机上注册。 (System.Data) (系统.数据)
  3. The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine. “Microsoft.ACE.OLEDB.12.0”提供程序未在本地计算机上注册。 (System.Data) (系统.数据)

As remedies to these errors, some people have suggested to save Excel file as .xls(Microsoft Excel 97-2003) and error will go away.为了解决这些错误,有人建议将 Excel 文件另存为 .xls(Microsoft Excel 97-2003),错误就会消失。 Well it will go away but at cost of the data loss.那么它会消失,但以数据丢失为代价。 Please read the answer below...请阅读下面的答案...

If you have more than 65,536 rows on a file, DO NOT SAVE .xlsx (Microsoft 2010/2013/2016) file as .xls (Microsoft Excel 97-2003) for workaround.如果文件中的行数超过 65,536,请勿将 .xlsx (Microsoft 2010/2013/2016) 文件另存为 .xls (Microsoft Excel 97-2003) 以解决问题。 .xls file can have only 65,536 rows. .xls 文件只能有 65,536 行。 It means if you have more than 65,536 rows on Excel file and you save it as .xls(Microsoft Excel 97-2003) then there will be data loss without any informational message.这意味着,如果 Excel 文件中的行超过 65,536 行,并且将其另存为 .xls(Microsoft Excel 97-2003),那么将丢失数据,而没有任何信息性消息。 This will lead into data loss.这将导致数据丢失。

I hope this will help someone in need.我希望这会帮助有需要的人。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 将SQL Server表导出到Microsoft Excel xlsx文件 - Export SQL Server table to Microsoft Excel xlsx file 如何自动将Excel 97转换为XLSX - How to automatic convert excel 97 to xlsx 将 Excel (.xls) 文件导入 Microsoft SQL Server 并设置主外键 - Import Excel (.xls) file into Microsoft SQL Server and set primary and foreign key 如何将数据从Excel 2007 xlsx文件导入SQL Server 2000数据库? - How to import data from Excel 2007 xlsx file into SQL Server 2000 Database? 将数据从 Microsoft SQL Server 导入 Excel - Import data from Microsoft SQL Server to Excel 'Microsoft.ACE.OLEDB.15.0' 提供程序未在本地计算机上注册。 (System.Data) 尝试将 Excel 2013 文件导入 SSMS 18 时 - The 'Microsoft.ACE.OLEDB.15.0' provider is not registered on the local machine. (System.Data) When Trying to Import Excel 2013 file into SSMS 18 SSIS:从服务器中的excel文件导入数据,数据库中提供xlsx路径链接 - SSIS: Import data from excel files, which are located in server, xlsx path link is available in database 将Excel文件导入Microsoft SQL时出现截断错误 - Truncation error when import excel file to Microsoft SQL 无法将 excel 文件导入 Microsoft SQL Server Management Studio - Can't import excel file to Microsoft SQL Server Management Studio Microsoft Excel无法粘贴数据 - Microsoft Excel cannot paste the data
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM