Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Padding a string
Message
 
 
To
29/02/2008 10:28:48
General information
Forum:
Microsoft SQL Server
Category:
Other
Miscellaneous
Thread ID:
01297712
Message ID:
01297719
Views:
17
This message has been marked as the solution to the initial question of the thread.
RIGHT(REPLICATE('0',2) + col1,2)
I also published PADx (and some other) UDFs for MS SQL Server in UtMag a while ago

>What's the proper way of padding a string?
>
>Lets say I have this:
>
>
>PRINT '2'
>
>
>But, I need a result like:
>
>02
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform