Most of the SQL Server users I know are big fans of stored procedures, but barely use functions, if ever. Functions are really nice, but I'm not going to go into all the reasons you should love them I'm just going to point out the use I recently made of one. You can write what is essentially a stored...