I got this error when inserting data to Microsoft SQL.
error: ('22001', '[22001] [Microsoft][ODBC Driver 13 for SQL Server][SQL Server]String or binary data would be truncated. (8152) (SQLParamData); [01000] [Microsoft][ODBC Driver 13 for SQL Server][SQL Server]The statement has been terminated. (3621)')
FYI, I use Python 2.7 and pyodbc
library.
What is that error about? What should I do to solve it?
Based on this link: http://www.sql-server-performance.com/2007/string-or-binary-data-truncated/
This error message appears when you try to insert a string with more characters than the column can maximal accommodate.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With