Advanced SQL, Stored Procedures, and Triggers for Microsoft SQL Server

Inquire now

Duration 3 days – 21 hrs

 

Overview

 

This hands-on course is designed for database professionals who want to deepen their expertise in SQL Server. It focuses on advanced SQL programming, including writing efficient queries, creating and managing stored procedures, and implementing triggers to automate database actions. Participants will gain practical knowledge and skills to enhance performance, maintain data integrity, and build complex business logic directly within the SQL Server environment.

 

 

Objectives

 

  • Write and optimize complex SQL queries using advanced techniques.
  • Design and implement stored procedures for modular and reusable SQL code.
  • Create, test, and manage triggers to enforce business rules and automate tasks.
  • Understand and manage SQL Server execution plans and performance tuning.
  • Handle error management and transactions within procedures and triggers.
  • Use dynamic SQL and control-of-flow language to create robust logic.

 

 

 

Audience

 

  • Database Developers
  • SQL Programmers
  • Data Analysts
  • Database Administrators (DBAs)
  • Software Developers working with SQL Server
  • IT Professionals who manage or design data-driven applications

 

Pre- requisites

  • Basic knowledge of SQL and relational database concepts
  • Familiarity with Microsoft SQL Server and T-SQL fundamentals

 

Course Content

 

Module 1: Advanced SQL Queries

 

  • Subqueries and correlated subqueries
  • Common Table Expressions (CTEs)
  • Window functions (ROW_NUMBER, RANK, NTILE, etc.)
  • Advanced joins and set operations
  • Pivoting and unpivoting data
  • Working with XML and JSON in SQL Server

 

Module 2: Stored Procedures Essentials

 

  • Benefits and use cases of stored procedures
  • Creating, altering, and executing stored procedures
  • Parameter handling (input, output, default values)
  • Control-of-flow logic (IF…ELSE, WHILE, CASE)
  • Using system stored procedures and information schema views

 

Module 3: Advanced Stored Procedures Techniques

 

  • Nested procedures and modularization
  • Error handling with TRY…CATCH
  • Transactions in stored procedures
  • Working with temporary tables and table variables
  • Dynamic SQL with EXEC and sp_executesql
  • Debugging stored procedures

 

Module 4: Triggers in SQL Server

 

  • Understanding the types of triggers (AFTER, INSTEAD OF)
  • Creating and managing DML triggers (INSERT, UPDATE, DELETE)
  • Trigger execution order and nesting
  • Preventing recursive triggers
  • Best practices for using triggers (when and when not to use them)

Module 5: Performance Optimization

 

  • Understanding query execution plans
  • Index usage and optimization strategies
  • Avoiding common performance pitfalls in stored procedures and triggers
  • Using SQL Profiler and Database Engine Tuning Advisor

 

Module 6: Security and Maintenance

 

  • Permissions for stored procedures and triggers
  • Schema binding and encryption
  • Version control and change tracking
  • Managing stored procedures and triggers in deployment

 

Module 7: Workshop and Hands-On Labs

 

  • Writing advanced queries based on business scenarios
  • Building a set of stored procedures for a sample system
  • Implementing triggers to automate data integrity rules
  • Performance tuning exercises

 

Inquire now

Best selling courses

Duration 3 days – 21 hrs   Overview    This Portfolio Management Training Course is designed to provide banking professionals with a comprehensive understanding of how to effectively manage investment and credit portfolios. Participants will gain insights into strategic allocation, performance measurement, risk management, and optimization of banking portfolios to align with regulatory requirements and...

Duration 2 days – 14 hrs   Overview   This comprehensive Planning and Forecasting Training Course is designed to empower professionals with the tools and techniques necessary to accurately predict future outcomes and develop strategic, operational, and financial plans. The course provides a structured approach to planning and forecasting, integrating both qualitative and quantitative methods....

Duration 3 days – 21 hours   Overview   This Beginner-to-Intermediate PostgreSQL Training Course is designed to build strong foundational skills in PostgreSQL while preparing participants to confidently work with real-world database tasks in modern environments.   Participants will learn how PostgreSQL works, how to write efficient SQL queries, how to design and manage database...

RISK MANAGEMENT

Liquidity Risk Management

Duration 5 days – 35 hrs   Overview.   This Liquidity Risk Management Training Course is tailored for banking professionals in the Philippines, focusing on the skills and knowledge necessary to manage liquidity risk effectively. Participants will learn how to assess liquidity risk, apply regulatory standards, and develop strategies to maintain adequate cash flow and...

Duration 5 days – 35 hrs   Overview    This 5-day advanced training course is designed for senior PMO leaders, program managers, PMO directors, and executives aiming to enhance their leadership capabilities and transform their PMOs into strategic business drivers. The course will explore advanced concepts in PMO strategy, digital transformation, innovation, business case development,...

TRAINOSYS CUSTOMIZED COURSE

Data Analytics from SQL to Power BI

The “Data Analytics from SQL to Power BI” training course is a comprehensive program designed to equip participants with the knowledge and skills necessary to analyze and visualize data using SQL and Power BI. Over the course of five days, participants will learn essential data analytics concepts, master SQL querying techniques for data retrieval and...

Duration 2 days – 14 hrs   Overview   This course provides a comprehensive understanding of the Anti-Money Laundering Act (AMLA) of the Philippines and techniques for identifying and handling counterfeit money. It equips participants with the knowledge to detect suspicious transactions, fulfill AML compliance obligations, and mitigate financial crime risks. Real-world case studies, regulatory...

Duration 2 days – 14 hrs   Overview   This course introduces participants to the principles and tools of data visualization and dashboard design. It focuses on transforming raw data into compelling, clear, and actionable visuals that support decision-making. Participants will explore visualization best practices, storytelling techniques, and hands-on tools (such as Excel, Power BI,...

We use cookies on our website to personalize your experience by storing your preferences and recognizing repeat visits. By clicking “Accept”, you agree to the use of all cookies. You can also select “Cookie Settings” to adjust your preferences and provide more specific consent. Cookie Policy