|
|
|
|
 |
Tech Stuff
Welcome to the Berry-Tech technical "stuff" page. This is a
collection of code snippets that have proven useful. It's a work in progress,
so check back for updates. You are welcome to use any code here as you wish!!!
SQL Server
Mod 10 User-Defined Function
Accepts up to a 50-digit number and returns the same number with a Mod10 check-digit appended. (You may want to add validation to ensure the number passed in is numeric.)
Proper Case User-Defined Function
Accepts up to a 100-character string and returns a proper-case version of that string (ie all lower-case with the first letter of each word upper-case). Can easily be expanded for more than 100 characters if needed.
|
 |
|
|
|