October 01, 2002 02:01 PM
Simplify, Parameterize, Reuse
Encapsulate your complex datetime expressions and reuse the code
Rating:

(0)
SQL Server Magazine
InstantDoc ID #26538
User-defined scalar functions (scalar UDFs) are tools that can simplify access to real and contrived date and time data for the end user. In my September TSQL-Tutor article "Datetime for Durable Databases," InstantDoc ID 26170, I demonstrated how to put together a simple scalar UDF that you can use with datetime values. Now, let's look at the ways you can use UDFs to handle more complex date and time data. One opportunity for using a UDF arises when your data is a date and time value but it isn'...
...This article is for paid Professional Members only.
Already a Professional Member? Please log in now: