A simple UDF for padding out numbers with a specific character (eg: pad 3 to show as 003).
Usefull when you can only sort as a text item or for formatting purposes.
Script is similar to the SPACE() function but allow the padding character to be defined.
Usage:
dbo.padNumber('string to pad', padsize, padchar)
eg:
SELECT dbo.padNumber('53', 4, '0') as testNum
Returns:
testNum
-------
0053
SP that shows information from a given database
It is used to show information from a database. It shows the creation date, it calculates the time in days, months and hours since its creation and it shows all the users with rights in that database.
2002-01-27
2,169 reads