Proper case SQL Function
Simple function to convert a string to proper case
CREATE FUNCTION PROPERCASE ( --The string to be converted to proper case @INPUT VARCHAR(8000) ) --This function returns the proper case string of varchar type RETURNS VARCHAR(8000) AS BEGIN IF @INPUT IS NULL BEGIN --Just return NULL if input string is NULL RETURN NULL END |
Leave a Reply