반응형

아래와 같이 CSV파일을 Import할 때 아래와 같은 에러에 직면할 수 있다.

 

Received an invalid column length from the bcp client for colid N

Microsoft SQL Server, Error: 4815

원인은 입력데이터 초과이다.

메세지의 "Received an invalid column length from the bcp client for colid N" N부분은 해당 column을 뜻한다.

해당 열의 설정한 데이터양보다 실제 입력된 데이터가 더 많다는 것이다.

varchar(50) 으로 입력한 데이터를 모두 담을 수 없다는 것이다.

반응형

 

해결방법.

실제 입력된 데이터를 줄이던가, 아니면 데이터 입력 사이즈를 키운다.

결과

 

 

아래 자료 참고

http://eyeglazer.blogspot.com/2010/07/sqlbulkcopy-and-colid-error.html

 

SqlBulkCopy and the "colid" error

I thought there was a page explaining this somewhere out there on the Internet, but I can't find it anymore. So here's what I re-discovered....

eyeglazer.blogspot.com

 

반응형

+ Recent posts