Introduction
  • Welcome to the Course
  • What is a Stored Procedure and why do we need them?
  • Creating Your First Stored Procedure
  • How to take this course
  • Introduction Quiz
  • Create Your Own Stored Procedure - Challenge
  • Create Your Own Stored Procedure - Answer
Setup Your Learning Lab (Optional)
  • Download SQL Server
  • Install SQL Server
  • Download and Install SSMS
  • Download Sample Databases
  • Restore Sample Databases
Stored Procedure Walk Through
  • Introduction
  • Parts of a Stored Procedure
  • Defining a Stored Procedure
  • Do you have any questions?
Debugging Stored Procedures
  • What is Debugging?
  • Interactive Debugging (Updated for SSMS 18)
  • Interactive Debugging (SSMS 17 or Visual Studio)
  • Debugging Quiz
Programming Concepts
  • Working with Variables
  • PRINT
  • BEGIN END Code Blocks
  • IF THEN Logic
  • WHILE Loops
  • WAITFOR Statement
  • GOTO and Labels
  • RETURN
  • Programming Concepts Quiz
  • Programming Concepts Assignment
Error Catching
  • Unstructured Error Handling using @@ERROR
  • Structured Error Trapping with CATCH and TRY
  • Error Catching Quiz
  • Error Handling Assignment
Creating and Executing Stored Procedures
  • Overview
  • Define a Stored Procedure with Parameters
  • Returning Results with SELECT
  • Using OUTPUT Parameters
  • Return Codes
  • Creating and Executing Stored Procedures Quiz
  • Creating and Executing Stored Procedures Assignment
Cursors and Transactions
  • Transactions
  • Introduction to Cursors
  • ISO versus Non-ISO Cursor Syntax
  • FETCH Command
  • Case Study
  • Cursors Assignment
Wrap-up
  • Thank You and What's Next?