Programming SQL Server Database Triggers and Functions

by Ryan Booz

SQL Server Triggers and Functions can be powerful tools for the DBA. In this course we'll demonstrate best practices, provide solutions to common problems, and identify when Triggers and Functions are the best choice for your requirements.

What you'll learn

As a SQL Server Database Developer, it is often necessary to have business-layer logic that exists within the database to ensure clean, consistent data. Although constraints and foreign key relationships can go a long way to provide the essential relational guarantees, Triggers provide the ability to validate and act on data at the time of modification, while Functions help you provide consistent methods for accessing the data across applications.

In this course, Programming SQL Server Triggers and Functions, you will learn foundational knowledge to better administer and develop efficient, high-performing Triggers and Functions. First, you will learn how to develop DML, DDL, and LOGON Triggers, and how to avoid common mistakes. Next, you will discover the differences between Multi-Statement and Single-Statement functions and how to write the most efficient functions possible. Finally, you will explore some lesser-known features and upcoming improvements in newer versions of SQL Server that can improve your overall experience with Triggers and Functions. When you are finished with this course you will have the skills and knowledge needed to administer and develop efficient, high-performing Triggers and Functions.

Table of contents

Course Overview

About the author

Ryan is the Chief Software Architect at KCF Technologies where he leads development of SmartDiagnostics, an industry leading platform for real-time predictive maintenance used by many of the largest manufactures in the North America. He primarily focuses on .Net, SQL Server, PostgreSQL and a myriad of cloud-first technologies in the AWS cloud. Before coming to KCF Technologies, Ryan spent more than 14 years with EnergyCAP, Inc. leading both IT and development. He is a long-time DBA, starting wi... more

Ready to upskill? Get started