在 Microsoft SQL Server Management Studio 中将 .txt 文件作为 table 导入

Importing .txt file as a table in Microsoft SQL Server Management Studio

我正在尝试通过导入和导出向导将超过 200 万行的文本文件 (.txt) 上传到 SQL 服务器。

但是我收到了这个错误,尽管预览看起来不错:

Executing (Error)

Messages

Error 0xc02020a1: Data Flow Task 1: Data conversion failed. The data conversion for column "NAME" returned status value 4 and status text "Text was truncated or one or more characters had no match in the target code page.".

Error 0xc020902a: Data Flow Task 1: The "Source - ADDRESS_POINT_txt.Outputs[Flat File Source Output].Columns[NAME]" failed because truncation occurred, and the truncation row disposition on "Source - ADDRESS_POINT_txt.Outputs[Flat File Source Output].Columns[NAME]" specifies failure on truncation. A truncation error occurred on the specified object of the specified component.

我现在刚试过,它在我的系统上看起来像这样。