![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
We are trying to use BCP to import data from flat files into tables in a SQL 2008 database. Even though BCP is erroring out, it is still putting data into the table. Doe anyone know of a fix to this? bcp <tablename> in <filename> -S <Server> -T -h "CHECK_CONSTRAINTS" -c -m 1 -F 2 -e err.txt When we run the above statement, the following is displayed: Starting copy... SQLState = 22001, NativeError = 0 Error = [Microsoft][SQL Server Native Client 10.0]String data, right truncation 540 rows copied. Network packet size (bytes): 4096 Clock Time (ms.) Total : 32 Average : (16875.00 rows per sec.) All of the rows prior to the error were written to the database. |
![]() |
| Thread Tools | |
| Display Modes | |
| |