Performance Tuning

[Video] Watch Brent Tune Queries

Ever wonder somebody else does it? Watch over my shoulder as I spend 9 minutes in PowerPoint explaining the big picture, and then about 40 minutes working on this stored procedure in the StackOverflow2013 database:

Watch Brent Tune Queries 2020

If you enjoy that, the Watch Brent Tune Queries page has another video and other query examples. Enjoy!

Free, 3× a week

Get my new posts by email

Three posts a week, plus a Monday roundup of the best database news from around the web.

13 comments

  1. Thanks Brent, I always pickup something new watching these videos. I’m off to check is_inlineable in SQL 2019

      1. Hi Brent.

        Thanks for a speedy reply, but i simply don’t see it in the file ‘Watch_Brent_Tune_Queries_2020.txt’ i get from the link ‘http://u.brentozar.com/Watch_Brent_Tune_Queries_2020.txt’

        Could quite possibly be my aging eyes are deceiving me.

      2. Anyway 🙂

        If anyone else, like me, can’t see it, here’s the script to create it:

        USE StackOverflow2013;
        GO

        SET ANSI_NULLS ON
        GO
        SET QUOTED_IDENTIFIER ON
        GO

        CREATE FUNCTION [dbo].[fnGetPostType] ( @PostTypeId INT )
        RETURNS NVARCHAR(50)
        WITH RETURNS NULL ON NULL INPUT,
        SCHEMABINDING
        AS
        BEGIN
        DECLARE @PostType NVARCHAR(50);

        SELECT @PostType = [Type]
        FROM dbo.PostTypes
        WHERE Id = @PostTypeId;

        IF @PostType IS NULL
        SET @PostType = ‘Unknown’;
        RETURN @PostType;
        END
        GO

Leave a comment

Your email address will not be published. Required fields are marked *

Email me about new comments: