Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Arithmetic overflow error converting expression to data type int When updating table

$
0
0

Hello, everyone,

I encountered the error :"Arithmetic overflow error converting express to data type int" when updating a table as follows:

UPDATEt1

SETt1.Count1 = t2.Count2

FROMTable1t1

JOINTable2 t2

ONt2.Id= t1.Id

t1.Count1's data type: INT

t2.Count2's data type: BIGINT

I understand that by changing t1.Count1's data type to BIGINT would solve the problem.

My question is -- Is there a way to fix this problem without changing the t1.Count1 data type to BIGINT?

Your help is much appreciate it!




Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>