Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need a string function
Message
From
11/10/2000 09:08:44
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
00426782
Message ID:
00427777
Views:
42
But you can create one with SQL Server 2000


CREATE FUNCTION PadWithZeros (@value INTEGER, @len INTEGER)
RETURNS CHAR(5)
AS
BEGIN
RETURN right(REPLICATE('0', @len)+ltrim(str(@value)), @len)
END

Or something like that.

-Mike
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Previous
Reply
Map
View

Click here to load this message in the networking platform