Active seminars

Dejan Sarka - T-SQL Language Beyond Fundamentals

This one-day seminar is intended for database developers and administrators already familiar with basic Transact-SQL language and who want to upgrade this knowledge to the next step. The attendees learn to write more advanced queries and use some less known or overlooked, but useful, syntax elements and database objects. The seminar does not discuss performance improvements in general terms, such as “this is faster and this is slower”, but also quantifies the differences through measurements.

Course will take place on June 13, 2025 at Hotel International, Miramarska 24, 10000 Zagreb, Croatia.

Session abstract

Summary

How often did you read in an article or hear in a presentation that using a specific T-SQL syntax or SQL Server feature is better for the performance, but not how much better it is? You might have a hard time when you want to distinguish between excellent pieces of advice, which can improve the performance for magnitudes, and average or even useless pieces of advice when you can measure the improvement in fractions of a percent? This seminar is focused on quantification, on measurements of the impact of a specific feature in terms of locks, CPU and elapsed times, and disk reads and writes.

After this seminar, you will have a clear understanding of the impact of using specific language elements and engine features. In addition, you will get the code that is an infrastructure for your future measurements in your development, testing, and production environments. You will be able to evaluate the actual impact of your and developers’ decisions in advance, or even after implementation of those decisions in production.

You probably already know that you can improve the performance of your database server with the help of clustered and nonclustered indices. Again, you can find tons of resources online, in courses, in books, and in conference presentations explaining how to create the best indices, what is the statistics associated with an index, how row operations with cursors are slow in SQL Server, and similar. However, we have some useful, yet less-known elements in the T-SQL language, that can improve the performance of the queries as well.

Besides learning about overlooked language elements, you will also learn how can you optimize a query by rewriting it. When rewriting a query, you can take maximum advantage of your knowledge of the database engine and the T-SQL language. You will also see that many times, knowledge of mathematics can be extremely useful for writing efficient queries.

You might have been tempted to use data compression in SQL Server, but you were afraid of it because of the potential impact on updates of the data. Nevertheless, you or your developers might like to use GUIDs for keys in your database. Why don’t you join this seminar and see the actual impact of those features mentioned, and learn how to measure it in your database?

Prerequisites

To get the maximum from the seminar, it is recommended that the attendees already have working knowledge of basic T-SQL data manipulation language elements, specifically:

  • SELECT
    • FROM, WHERE, GROUP BY, HAVING, ORDER BY
  • INSERT
  • UPDATE
  • DELETE

In addition, the delegates should understand the fundamentals of the data structures in SQL Server, namely heaps, clustered, and nonclustered indices. They should be capable of reading SQL Server execution plans as well.

Modules

  • Introduction
  • Less known T-SQL language elements
    • Approximate aggregate functions
    • Grouping sets
    • String aggregation and splitting
    • APPLY operator
  • Working with procedures and optimizer hints
    • Parameter sniffing
    • Stricter contract with client applications
    • Optimizer hints and plan guides
  • Seldomly used optimization options
    • Row and page compression
    • Measuring the impact of the compression
    • Measuring the impact of GUIDs
    • Filtered indexes and indexed views
  • Optimizing queries by rewriting the code
    • Troubles with subqueries
    • Using window functions for row-by-row operations
    • Rewriting a query by using T-SQL knowledge
    • Rewriting a query by using math knowledge
  • Finding changed data
    • DML triggers
    • The OUTPUT clause
    • Change Data Capture
    • Change Tracking
    • System-versioned tables
    • The ROWVERSION data type

Dejan Sarka

Dejan Sarka, MCT and SQL Server MVP Alumni, is an independent trainer and consultant that focuses on development of database and business intelligence applications.

Besides projects, he spends about half of the time on training and mentoring.

He is the founder of the Slovenian SQL Server and .NET Users Group.

Dejan Sarka is the main author or co-author of twenty books about databases and SQL Server.

Dejan Sarka has also developed many courses and seminars for Radacad, Microsoft, SolidQ, and Pluralsight.

Pricing

One-day seminar price Price
Early bird price (before 01.05.2025.) 199,90€
Regular price 240,00€
*All prices are in Euro (€)

Register

Registrations for the seminar are opened until 31.05.2025. Because of limited seats and great interest please register on time if you like to attend this event.

If you are interested in attending the Data Saturday Croatia 2025 preconference seminar “Dejan Sarka - T-SQL Language Beyond Fundamentals” please reserve your seat and register here.
*Registration is just a seat reservation; you will get payment details for the event when minimum number of attendees is meet.