将文本文件导入 SQL Server 时出错

问题描述 投票:0回答:0

许多错误消息,例如:

平面文件导入任务失败,错误为 0xc02020a1

文本被截断或一个或多个字符在目标代码页中不匹配

但我不明白为什么。

它甚至不导入这个小文本文件(说内容已被截断):

Volume in drive C has no label.
Directory of C:\
13/07/2009  22:30             2.048 netmsg.dll
13/07/2009  22:24             2.048 asferror.dll
21/11/2010  00:23             2.048 tzres.dll
13/07/2009  22:28             2.048 mctres.dll
                4 File(s)    8.192 bytes
               0 Dir(s)  904.826.010 bytes free

The target table structure is:
Field0 nvarchar 255
Field1 int
Field2 date
Field4 varchar 10

程序是SQL Import Wizard (SQL Server Management Studio)

sql-server text-files data-import datapump
© www.soinside.com 2019 - 2024. All rights reserved.