Chapter 6: User Defined Functions


Overview

User defined functions, known more commonly as UDFs, are routines called from T-SQL code to return either a single value or a rowset. Although they are, perhaps, the least used of specialized stored procedures, they are powerful tools in a database developer's armory. They provide the developer with the ability to create their own customized functions, which can then be re-used in other parts of their T-SQL code.

UDFs have some features that are common to stored procedures, but there are a number of restrictions as well. In this chapter, we will begin by looking at what a UDF actually is, and then move onto look at:

  • The different types of UDFs

  • Building and calling functions that return different types of data

  • Using schema binding with UDFs

  • How UDFs differ from stored procedures




SQL Server 2000 Stored Procedures Handbook
SQL Server 2000 Stored Procedures Handbook (Experts Voice)
ISBN: 1590592875
EAN: 2147483647
Year: 2005
Pages: 100

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net