Transact-SQL user-defined functions [electronic resource]