Click here to monitor SSC
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in
Home       Members    Calendar    Who's On

Add to briefcase

Error while converting varchar to numeric Expand / Collapse
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: Tuesday, December 8, 2015 7:30 PM
Points: 81, Visits: 1,025
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



Group: General Forum Members
Last Login: Thursday, September 1, 2016 2:56 AM
Points: 5,969, Visits: 6,067
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
When a question, really isn't a question - Jeff Smith
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