Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Convert to Numeric or Varchar

Author  Topic 

nguyenl
Posting Yak Master

128 Posts

Posted - 2008-08-08 : 12:49:53
Hi,

When I run this query I get: "Arthmetic overflow error converting varchar to data type numeric". I believe the problem lies at "[propertyId]". How would I convert something like this to numeric or varchar?

Thankyou


SELECT
sale_date,
sale_price,
excise_id,
rcrdg_number,
seller_name,
buyer_name,
mult_parcl
FROM PARCEL
LEFT JOIN PAR_SALES
ON PARCEL.link_id = PAR_SALES.LINK_ID
WHERE
parcel.parcel_id = [propertyId]
AND
parcel.parcel_year = 0
ORDER BY sale_date DESC

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-08-08 : 13:00:19
i think you've some values in your propertyid which contains non numeric data and cant be converted. you need to remove them before you can perform the conversion.
Go to Top of Page
   

- Advertisement -