The below query is throwing:
Msg 8152, Level 16, State 2, Line 1 String or binary data would be truncated. The statement has been terminated.
update table1
set cust_line1_name = c.cust_line1_name
from table1 d
inner join dbo.table2 c
on c.cust_nbr = d.cust_id
and c.bus_grp_id = d.bus_grp_id
table1
cust_line1_name - varchar(24)
table2
cust_line1_name - nvarchar(140)
I checked whether any data which is having length greater than 24 is getting updated but there is no such data
SELECT LEN(c.cust_line1_name), c.cust_line1_name
from table1 d
inner join dbo.table2 c
on c.cust_nbr = d.cust_id
and c.bus_grp_id = d.bus_grp_id
WHERE LEN(c.cust_line1_name)> 24
The above query is returing zero result. The issue is in SQL server 2008 Could someone help