Course : Transact-SQL, optimization for SQL Server

Versions 2022 to 2012

Practical course - 2d - 14h00 - Ref. TAS
Price : 1360 € E.T.

Transact-SQL, optimization for SQL Server

Versions 2022 to 2012



Knowing how to write and optimize Transact-SQL to improve query performance is essential when developing. With this knowledge, you'll avoid the pitfalls frequently encountered when programming in T-SQL. We'll give you the skills you need to get up and running quickly.


INTER
IN-HOUSE
CUSTOM

Practical course in person or remote class
Disponible en anglais, à la demande

Ref. TAS
  2d - 14h00
1360 € E.T.




Knowing how to write and optimize Transact-SQL to improve query performance is essential when developing. With this knowledge, you'll avoid the pitfalls frequently encountered when programming in T-SQL. We'll give you the skills you need to get up and running quickly.


Teaching objectives
At the end of the training, the participant will be able to:
Understanding how the SQL optimizer works
Choose the right indexes to optimize data access
Use profiler and extended events to improve performance
Use statistics and the execution plan to audit query performance
Improving queries through good writing practices
Using set queries

Intended audience
Transact-SQL project managers, designers and developers.

Prerequisites
Good knowledge of the basics of the SQL language, or knowledge equivalent to that acquired in the course "SQL Server, SQL programming" (ref PSQ).

Practical details
Hands-on work
Interactive training, closely alternating theory and practice. Learning takes place through experimentation.

Course schedule

1
The relational model and SQL language

  • Specific features of relational databases and SQL language.
  • Data model standardization.
  • Concepts of assembly and declarative writing. Specific features of the Transact-SQL dialect.
  • How the SQL optimizer works.
Hands-on work
Experiment with queries on more or less standardized models.

2
Successful indexing

  • The basics of indexing. B-Tree structure and different index types.
  • How to choose indexes according to queries?
  • The notion of query coverage by an index.
  • The SARG (Search Argument) concept to encourage index use.
  • Use of profiler and extended events (xevents).
  • Use the Query Store to detect plan regressions.
Hands-on work
Indexing and tracing problem queries.

3
Writing high-performance queries

  • Rules for writing SQL queries.
  • Read and use execution statistics and the execution plan.
  • Optimize data update code.
  • Common errors: user functions, case-insensitive comparisons, cardinality estimation.
Hands-on work
Rewrite poorly performing queries.

4
Replace temporary tables and cursors

  • Master subqueries and relational operators.
  • Use the MERGE instruction for complex data updates.
  • Create number and date tables for relational problem solving.
  • Use windowing and statistical functions.
  • Write recursive code using table expressions.
Hands-on work
Solve complex problems using set queries.

5
Best practices for code modules

  • Rules for writing stored procedures.
  • Master compilation and recompilation.
  • Minimize the impact of triggers. Understand transactions and locking problems.
  • Use transaction isolation levels.
Hands-on work
Writing an optimized stored procedure.


Customer reviews
4,5 / 5
Customer reviews are based on end-of-course evaluations. The score is calculated from all evaluations within the past year. Only reviews with a textual comment are displayed.
JOYCE M.
05/06/25
5 / 5

compliant
MIREILLE R.
05/06/25
5 / 5

very interesting discovery
NATHALIE L.
27/02/25
3 / 5

1H30 of exercise for 2 days of training is far too little. The training was far too dense. But a very interesting subject.



Dates and locations
Select your location or opt for the remote class then choose your date.
Remote class

Dernières places
Date garantie en présentiel ou à distance
Session garantie

REMOTE CLASS
2026 : 12 Mar., 21 May, 8 Oct., 10 Dec.

PARIS LA DÉFENSE
2026 : 12 Mar., 21 May, 8 Oct., 10 Dec.