简体   繁体   English

在SQL SERVER 2008 R2中导入2007文件

[英]Importing 2007 files in SQL SERVER 2008 R2

Good Day, 美好的一天,

Today i am facing this error upon importing an excel file to a databe in sql server 2008 今天,我在将Excel文件导入到SQL Server 2008中的Databe时遇到了此错误

在此处输入图片说明

i do not know what causes this error, i do not know if it is because the excel file is 48MB in size, or because there is a sheet where in there are 113956 rows? 我不知道是什么原因导致此错误,我不知道这是因为Excel文件的大小为48MB,还是因为存在一张包含113956行的工作表? if so can you help me find a work around to this? 如果可以的话,您能帮我找到解决方法吗? i really need to import the data inside my excel file to the database. 我真的需要将excel文件中的数据导入数据库。 i tried selecting the 2007 version of my excel file in the dropdown box like below but it still outputs the same problem. 我试图在如下所示的下拉框中选择我的excel文件的2007版本,但它仍然输出相同的问题。 so any help? 有什么帮助吗?

Thank You. 谢谢。

There are a couple of things you can try: 您可以尝试以下几种方法:

  1. Resave the Excel file as a delimited text file - that way you can get around the MS Office driver. 将Excel文件重新保存为带分隔符的文本文件-这样,您就可以绕过MS Office驱动程序。
  2. Try cutting the Excel file in half by saving it in two different files. 通过将Excel文件保存到两个不同的文件中,尝试将其切成两半。

Out of curiosity, how many columns does this Excel file have? 出于好奇,此Excel文件具有几列? I believe there is a 255 column limit. 我相信列上限为255。

我尝试重新保存文件,但不保存为CSV格式,但我发现excel文件是只读的,尽管其属性未设置为只读,但是在将excel文件保存为另一个文件后,导入现在对我有效。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM