You recognized this message ?
String or Binary data would be truncated …
Now find the problem/column/value where this error was raised. It’s like search the needle in the haystack…
Now, new in sql server 2019 , this message will be replace ( hip hip hurrah!) with a new message:
String or binary data would be truncated in table ‘DatabaseName.SchemaName.TableName’, column ‘ColumnName’. Truncated value: ‘xxxYYYzzz’
Will be available, also, in :
- Sql server 2017 + CU12
- SQL Server 2016 SP2 CU
but not as default. (To activate it, in this versions, you need to use trace flag 460).
For the moment, in sql server 2019, you still need TF 460 to activate, but in the next release of sql server 2019, it will be activated as default.
Enough with message ID 8152 , the new message ID is 2628.
I’m very happy on this new feature.
S