收到一个无效的列长度从bcp客户端的colid 6 [英] Received an invalid column length from the bcp client for colid 6

查看:1736
本文介绍了收到一个无效的列长度从bcp客户端的colid 6的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从C#代码批量上传CSV文件数据到SQL Server 2005,但这个错误是出现

I want to bulk upload csv file data to sql server 2005 from c# code but this error is appear

接收到无效的列长度从colid 6 bcp客户端。

Received an invalid column length from the bcp client for colid 6.

在批量复制写入到数据库服务器

when bulk copy write to database server

推荐答案

一在Excel中(列标识6)具有超过在数据库中的DataColumn的数据类型为一个或多个单元格数据数据列的。

One of the Data column in the excel (Column Id 6) has one or more cell data that exceeds the datacolumn datatype length in the database.

在Excel中验证数据。也验证数据以Excel为它的格式是符合数据库表模式。

verify the data in excel. Also verify the data in the excel for it's format to be in compliance with the database table schema.

要避免这种情况,请尝试超过在数据库中的字符串数据类型的数据长度表。

To avoid this, try exceeding the datalength of the string datatype in the database table.

希望这有助于。

这篇关于收到一个无效的列长度从bcp客户端的colid 6的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆