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
 SQL Server 2000 Forums
 SQL Server Development (2000)
 remove leading zeros

Author  Topic 

cat_jesus
Aged Yak Warrior

547 Posts

Posted - 2001-10-09 : 10:57:09
Is there a function that will allow you to remove leading characters from a varchar column or text string? I'm looking for something that will work similar to ltrim except with zeros instead of spaces. I've done the prerequisite searches and I am coming up empty. Has anyone else hit this problem?

nevermind

CONVERT(DECIMAL(8,2),field)

Cat



Edited by - cat_jesus on 10/09/2001 11:11:30
   

- Advertisement -