DDL triggers are a special kind of trigger that fire in response to Data Definition Language (DDL) statements. They can be used to perform administrative tasks in the database such as auditing and regulating database operations. This lab is divided into five exercises. In first exercise we will know about database scoped triggers. In Second exercise we will know about server scoped triggers. In third exercise we will know about logon triggers. Fourth exercise is Self-Assessment where a problem is given and you need to solve by yourself. Fifth exercise presents a T-SQL challenge that needs to be solved (slightly tougher that self-assessment).
Exercise 1: Database Scoped Trigger
Exercise 2: Server Scoped Trigger
Exercise 3: Logon Trigger
Exercise 4: Self-Assessment
Exercise 5: T-SQL Challenge