The document describes three types of user-defined functions in SQL Server: 1) Scalar functions that return a single value, 2) Inline table valued functions that return a table object, and 3) Multi-statement table valued functions that explicitly define the structure of the table to return. Examples are provided for each type of function, including how to create, modify, and execute the functions. Triggers are also discussed, with an example provided of an AFTER UPDATE trigger that inserts old records from the updated table into a second table.