Guest_imported
New member
- Jan 1, 1970
- 0
Hi,
I'm writing a script using bcp to transfer data from SQL 2000 to a file and vice versa. My database schema is composed by several tables and everthing works perfectly for all of them except one. This table contains a field which contains a long string. (Max 1000 chars).
When I dump the database...that works..but when I try to feed another database (with the same schema) an error is raised:
Starting copy...
SQLState = 22001, NativeError = 0
Error = [Microsoft][ODBC SQL Server Driver]String data, right truncation
Has somebody an idea about this error and how can I fix my problem?
thx
david
I'm writing a script using bcp to transfer data from SQL 2000 to a file and vice versa. My database schema is composed by several tables and everthing works perfectly for all of them except one. This table contains a field which contains a long string. (Max 1000 chars).
When I dump the database...that works..but when I try to feed another database (with the same schema) an error is raised:
Starting copy...
SQLState = 22001, NativeError = 0
Error = [Microsoft][ODBC SQL Server Driver]String data, right truncation
Has somebody an idea about this error and how can I fix my problem?
thx
david