myvision69
Programmer
Is there a way to ignore "Message 8152 16 String or binary data would be truncated." so that the Update or Insert is successful even though string value is being truncated.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
declare @Temp Table(Data varchar(2))
[green]-- This one errors[/green]
Insert Into @Temp Values('This is too long.')
[green]-- This one is fine[/green]
Insert Into @Temp Values([!]Left([/!]'This is too long.'[!], 2)[/!])