Virtual and Classroom Training - All our courses are available virtually. We have also started a safe return to classroom training. Click here to learn more.

banner image

Transact SQL (T-SQL) Programming

2 Day Course
course icon

Course Information

Overview

Providing a solid grounding in procedural programming techniques for SQL Server / Transact-SQL (T-SQL) developers, this course is aimed at those with sound experience of SQL basics (on any platform). Variables, Conditional Processing, Stored Procedures, User defined Functions, DML Triggers and Error Handling are covered in a highly practical and modular environment so that attendees learn by doing. Working in a tutorial style environment, one to one interaction is facilitated and encouraged.On completion, a comprehensive set of course notes, examples, tutor and attendee scripts are made available online for each attendee.

Prerequisites

This is a course for those with sound experience of SQL basics (on any platform).

Course Outline

1. T-SQL Views Reviewed
  • Views Explained
  • Important Points About Views
  • Creating Views
  • Removing Views
  • Updating through a View
  • Using the WITH CHECK Option
2. Introducing Procedural Programming
  • Declarative vs Procedural
  • Batch processing and GO
  • The Need for BEGIN ... END
  • Creating and Using Variables
  • Scalar Variables and Table Variables
  • Making Use of Temporary Tables
3. Conditional Processing
  • IF ... ELSE
  • Remember the Basics!
  • Comparison Operators
  • LIKE, NOT, BETWEEN, IN()
  • The EXISTS Keyword
  • BREAK, CONTINUE, RETURN
  • GOTO
  • WAITFOR
4. Harnessing T-SQL Stored Procedures
  • Stored Procedure Basics
  • Designing, Creating and Compiling
  • Executing Stored Procedures
  • Modifying and Deleting
  • Passing Parameters to Stored Procedures
  • Using Return Codes
  • Stored Procedures and Management Studio
  • Viewing Stored Procedures
  • Working with Table Valued Parameters
5. Understanding User Defined Functions (UDFs)
  • User Defined Function Basics
  • Types of Functions
  • User Defined Function Guidelines
  • Deterministic and Nondeterministic Functions
  • Creating and Executing User Defined Functions
  • Viewing User Defined Functions
6. Implementing Error Handling
  • Understanding Database Engine Errors
  • Handling database Engine Errors
  • Using TRY ... CATCH
  • Retrieving Error Information
  • RAISERROR, PRINT and @@ERROR
7. Using DML Triggers
  • Introducing DML Triggers
  • Creating DML Triggers
  • Deleting and Disabling DML Triggers
  • Using the Deleted and Inserted Tables
  • Implementing INSTEAD OF Triggers
  • DML Triggers vs Constraints

Private Courses

We can arrange your own private SQL course.

Tailored

Have us build a custom private course tailored to your needs.

Cost Effective

If you are looking to training a group of people private courses can be very cost effective.

Post Course Support

Unlimited post course email support on the course topics.

What Our Clients Think

I took so much away from this course and felt Stuart's teaching method was exceptional.

Rowanne Kiehl - SSE

Course is well structured and instructor delivered the content, and more, perfectly. No question left unanswered, no theory unexplained.

Aidan Hamill - Intact Software

Very informative and was at a good pace. Lots of extra useful tips too.

Harry Finch - Lancashire Insurance

Really enjoyed this course. It delivered exactly what I wanted out it.

Malkit Singh - Regatta Ltd

Very good at tailoring the course to my needs. Very individual and attentive.

Andrew Griffin - Blackfin

The trainer did a fantastic job of delivering the course and providing understanding

Niall Simmons - Haven Power

Related Courses

Public Course Dates Available!

This comprehensive SQL course will teach you the all the basics on extracting data from an SQL database as well as adding data, removing data and creating new databases.

Introductory SQL training for those who need to extract data from and update data in PostgreSQL databases.

Introductory SQL training for those who need to extract data from and update data in MySQL databases.

Introductory SQL training for those who need to extract data from, and update data in, Oracle databases

Introductory T-SQL training for developers or users who need to both extract and modify data stored in SQL Server databases.

Students will learn what SQL is and how it can help them query a database to answer business questions.

SQL training for those who need to both query and modify PostgreSQL data and create PostgreSQL databases and tables.

SQL training for MySQL developers or users who need to both query and modify MySQL data and create MySQL databases and tables.

Introductory to intermediate level Oracle SQL training for developers or users who need to query and modify data stored in Oracle database servers.

Introductory to intermediate level SQL Server-specific Transact-SQL (T-SQL) training for developers or users who need to query and modify data stored in SQL Server.

Students will learn advanced queries and how to add, update, and delete data, tables, views, and indexes.

Introduction to SQL training for developers or users who need only to extract (not modify) data from PostgreSQL databases.

Introduction to SQL training for developers or users who need only to extract (not modify) data from MySQL databases.

Introduction to SQL training for developers or users who need only to extract (not modify) data from Oracle databases.

Introductory T-SQL training for developers or users who only need to extract (not modify) data stored in SQL Server databases.

Practical skills booster Oracle SQL training for existing Oracle SQL developers or users who wish to take their existing Oracle SQL skills to the next level.

Practical skills booster Transact SQL (T-SQL) training for existing SQL Server T-SQL developers or users who wish to take their existing T-SQL skills to the next level.

PL/SQL training to develop solutions with Oracle's programming objects and procedural extensions.

Procedural programming techniques for SQL Server developers. Conditional Processing, Stored Procedures, User defined Functions, DML Triggers and Error Handling techniques are covered in a highly practical and modular environment.

Practical skills booster ANSI SQL training for existing SQL developers or users who are currently working with data stored in database servers like SQL Server, Oracle, IBM DB2, PostgreSQL and MySQL and who wish to take their existing SQL skills to the next level.

Introductory to intermediate level ANSI SQL training for developers or users who need to query and modify data stored in database servers like SQL Server, Oracle, IBM DB2, PostgreSQL and MySQL.

Introductory ANSI SQL training for developers or users who only need to extract (not modify) data stored in database servers like: SQL Server, Oracle and MySQL.

Practical Introductory ANSI SQL training for developers or users who need to query and modify data stored in database servers like SQL Server, Oracle and MySQL.