here is the difference between varchar concatenation and adding an integer, you seem to continue varchar concatenation, you may need to use CAST and CONVERT (Transact-SQL) to add your numbers
example 1 w / integers:
DECLARE @table1 TABLE(field1 int, field2 int) INSERT INTO @table1 VALUES (123456, 12) SELECT 'before' as 'before', * FROM @table1 UPDATE @table1 SET field1 = field1 + 123456 WHERE field2 = 12 SELECT 'after' as 'after', * FROM @table1
example 1 result:

example 2 w / varchar:
DECLARE @table2 TABLE(field1 varchar(50), field2 varchar(2)) INSERT INTO @table2 VALUES ('123456', '12') SELECT 'before' as 'before', * FROM @table2 UPDATE @table2 SET field1 = field1 + '123456' WHERE field2 = '12' SELECT 'after' as 'after', * FROM @table2
Example 2:

Mikem source share