How to create a SQL Server function ?

How to create a simple SQL Server function ? This example of Transact-SQL code is to be copied and pasted. And use it as a syntax checklist. In fact, here is a script for creating an SQL function with a customer number as a parameter and the customer’s name as the result. T-SQL functions, like stored procedures, are at the heart of Microsoft database … Continue reading How to create a SQL Server function ?