Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Convert from char to decimal - errors

Status
Not open for further replies.

CTekMedia

Programmer
Oct 5, 2001
634
US
I have a SQL Server 2000 DB with a varchar field I need to convert to Decimal. I'm getting errors. Any suggestions on how I can step through the current data and test to see if it is valid for Decimal,9,4?

Thanks!

Cheers,

Bluetone
 
Start with a test for numeric values. Add other conditions as needed.

--- values that are numeric
WHERE ISNumeric(YourVarcharColumn) = 1
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top