Www.NovickSoftware.com User-Defined Functions in SQL Server 2005 Andrew Novick 2007.
User defined Function in SQL