Link to home
Start Free TrialLog in
Avatar of NigelRocks
NigelRocks

asked on

Int OverFlow in T-SQL

Experts,

The attached code gives me the following error:

The conversion of the varchar value '20000202008    ' overflowed an int column. Maximum integer value exceeded.


The two last rows of the table in the subquery have this type of larger value.  Tr_Trans_Number is an int, so it needs to compare to this column.  How can I make it work?
SELECT 
c.cu_acct_num,
ct.tr_Trans_number
FROM Customer_Transaction ct 
INNER JOIN Customer c 
ON ct.customer_ID= c.Customer_ID  
where ct.Tr_Trans_Number IN (SELECT Column1 FROM CCLCache.dbo.Comparison_Transaction_Accounts_EXCEL)

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3]
Flag of Luxembourg image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of NigelRocks
NigelRocks

ASKER

You rock!