printmedia
asked on
Remove leading zeros in SQL task
Hi all.
We have a table (myTable) that has a field (PO_Number) that may have leading zeros.
For example:
PO_Number:
00123
04560
000ABC
I want to know if there is a way to remove any leading zeros, the number of leading zeros may vary, some may not have any leading zeros.
I will use this in a SQL DTS.
Thank you in advance!
We have a table (myTable) that has a field (PO_Number) that may have leading zeros.
For example:
PO_Number:
00123
04560
000ABC
I want to know if there is a way to remove any leading zeros, the number of leading zeros may vary, some may not have any leading zeros.
I will use this in a SQL DTS.
Thank you in advance!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Nice trick BC. Like it.
Lee
Lee
>>I will use this in a SQL DTS.<<
Using T-SQL or using an ActiveX Script Task?
Using T-SQL or using an ActiveX Script Task?
ASKER
Thanks BC, I will give it a try and let you know.
ACperkins: I'll be using T-SQL
ACperkins: I'll be using T-SQL
ASKER
Worked great. Thanks!
Lee
Open in new window