Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Error while converting varchar to numeric Expand / Collapse
Author
Message
Posted Wednesday, September 12, 2012 10:37 PM
SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Saturday, July 12, 2014 12:11 AM
Points: 81, Visits: 912
Below is the query which is giving the error:---


SELECT [Working ISIN], convert(decimal(18,3),[Split Old Paidup]) as [Split Old Paidup]
, convert(decimal(18,3),[Split New Paidup]) as [Split New Paidup]
FROM abc.[xyz].dbo.[lmn]



Please help is required
Post #1358335
Posted Thursday, September 13, 2012 1:50 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Today @ 7:20 AM
Points: 5,143, Visits: 4,948
one of the two columns or both being converting to decimal have none transformable charcters, check the data and update/delete the offending rows.



Want an answer fast? Try here
How to post data/code for the best help - Jeff Moden
Need a string splitter, try this - Jeff Moden
How to post performance problems - Gail Shaw
CrossTabs-Part1 & Part2 - Jeff Moden
SQL Server Backup, Integrity Check, and Index and Statistics Maintenance - Ola Hallengren
Managing Transaction Logs - Gail Shaw
Troubleshooting SQL Server: A Guide for the Accidental DBA - Jonathan Kehayias and Ted Krueger

Post #1358371
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse