I have a table in SQL Server 2008
Table Name : tbl_device
Table Structure:
Column | Type col1 | nvarchar(200)
Now when i try to insert data into this (it works for shorter cases but) and the string data is long i.e. with
LEN function it is 162
Still the server gives error :
Msg 8152, Level 16, State 4, Line 1 String or binary data would be truncated.
what should be the reason for it ??
There are trailing blanks in the string that generates the error message but they are not counted using
len()function.