SQL Server Performance Essentials - Full Course

In this course, Essentials of SQL Server Performance For Every Developer, you will see how to diagnose what is happening with a slow running SQL statement and what strategies are available to make these statements run faster.
By the end of this course, you as an application developer will have the tools you need to troubleshoot performance problems you may encounter when using SQL Server.
💻 Code, links, Dynamic Views(DMVs), and Database Backups: github.com/iCodeMechanic/Esse...
✏️ Course from Rajan Arora. Check out his channel: / icodemechanic
⭐️ Course Contents ⭐️
⌨️ (0:00:00) Introduction
Getting Started
⌨️ (0:00:53) 1.1 Course Introduction
⌨️ (0:04:07) 1.2 Why Developers should Understand SQL Performance
⌨️ (0:06:20) 1.3 Tools you Need
⌨️ (0:09:30) 1.4 Restore the Sample Database
⌨️ (0:12:04) 1.5 Table Concept
⌨️ (0:17:12) 1.6 Index Concept
⌨️ (0:20:32) 1.7 Summary
Analyzing SQL Statements for Performance
⌨️ (0:22:12) 2.1 Introduction
⌨️ (0:24:55) 2.2 Understanding How SQL Server Will Execute a SQL Statement
⌨️ (0:29:33) 2.3 Reading and Interpreting an Execution Plan for a SQL Statement
⌨️ (0:39:44) 2.4 Getting Execution Statistics for a SQL Statement
⌨️ (0:45:29) 2.5 Improving Statement Performance by Adding an Index
⌨️ (0:52:11) 2.6 Rewriting SQL Statements for Improved Performance
⌨️ (0:58:32) 2.7 Common Execution Plan Operations
⌨️ (1:03:50) 2.8 Summary
Building Indexes
⌨️ (1:07:30) 3.1 Introduction
⌨️ (1:09:09) 3.2 Index Terminology Refresher
⌨️ (1:12:11) 3.3 What Should I Index in My Database?
⌨️ (1:16:16) 3.4 Why Index Column Order Matters
⌨️ (1:23:39) 3.5 Index Selectivity Explained
⌨️ (1:36:23) 3.6 LIKE Clauses and Index Selectivity
⌨️ (1:40:27) 3.7 How Functions in the WHERE Clause Affect Indexes
⌨️ (1:46:10) 3.8 Include Columns and Covering Indexes
⌨️ (1:50:40) 3.9 Over-indexing
⌨️ (1:54:40) 3.10 Interpreting SQL Server Index Recommendations
⌨️ (1:57:38) 3.11 Summary
Finding Bottlenecks in SQL Server Performance
⌨️ (2:03:19) 4.1 Introduction
⌨️ (2:08:36) 4.2 Getting Information About SQL Server Sessions and Resource Usage
⌨️ (2:12:02) 4.3 Finding What SQL Statements are Currently Executing
⌨️ (2:18:47) 4.4 Finding the Slowest, Most Expensive SQL Statements
⌨️ (2:24:13) 4.5 Getting SQL Server's Recommendations on Missing Indexes
⌨️ (2:29:38) 4.6 Finding Indexes That are Not Being Used
⌨️ (2:34:13) 4.7 Summary
Capturing Trace Logs of Application from SQL Server
⌨️ (2:35:55) 5.1 Introduction
⌨️ (2:42:03) 5.2 Setting up a SQL Profiler Trace
⌨️ (2:49:59) 5.3 Running a SQL Profiler Trace
⌨️ (2:55:22) 5.4 Running a Trace as a Server Side Trace
⌨️ (3:03:19) 5.5 Introduction to Using Extended Events for SQL Tracing
⌨️ (3:06:58) 5.6 Setting up an Extended Events Trace Session
⌨️ (3:16:50) 5.7 Running and Configuring the Display Settings for an Extended Events Trace
⌨️ (3:20:38) 5.8 Analyzing Extended Events Trace Data
⌨️ (3:27:10) 5.9 Using Extended Events in SQL Azure
⌨️ (3:31:36) 5.10 Summary
Apply Common Practices for Better Performance
⌨️ (3:35:47) 6.1 Introduction
⌨️ (3:37:17) 6.2 Use Parameterized SQL
⌨️ (3:42:59) 6.3 Are Stored Procedures Faster Than SQL in Application Code?
⌨️ (3:43:04) 6.4 Commit Behavior and Performance
⌨️ (3:50:16) 6.5 Object Relational Mappers Just Generate SQL
⌨️ (3:53:19) 6.6 Solving the N+1 Selects Problem
⌨️ (3:59:56) 6.7 Summary
🎉 Thanks to our Champion and Sponsor supporters:
👾 Raymond Odero
👾 Agustín Kussrow
👾 aldo ferretti
👾 Otis Morgan
👾 DeezMaster
--
Learn to code for free and get a developer job: www.freecodecamp.org
Read hundreds of articles on programming: freecodecamp.org/news

Пікірлер: 144

  • @ICodeMechanic
    @ICodeMechanic2 жыл бұрын

    Hey! this is Rajan Arora. Thank you so much Beau for posting my tutorial. I hope this will help all the viewers to tune their SQL Statements in MS SQL Server. I hope we have more collaboration like this in the future!

  • @abdulwahab-rw1yq

    @abdulwahab-rw1yq

    2 жыл бұрын

    Thanks Rajan.. this is really one of the best vidoes i have watched on peformance tuning

  • @ICodeMechanic

    @ICodeMechanic

    2 жыл бұрын

    @@abdulwahab-rw1yq Thanks for the feedback

  • @ahmad-murery

    @ahmad-murery

    2 жыл бұрын

    That was not just a good refresher to me but I also learned some new things, it's 4 hours long but definitely worth it, Well done Rajan, and thanks Free Code Camp for sharing,

  • @DivakarRaj

    @DivakarRaj

    2 жыл бұрын

    Could you please provide link where the DM queries can be accessed from

  • @dev.maazqureshi

    @dev.maazqureshi

    2 жыл бұрын

    Thanks, Rajan This course is just excellent.. love it!

  • @mjKeszely
    @mjKeszely Жыл бұрын

    Exactly what I need. Thank you, Mr. Rajan and FCC team.

  • @rajendrawarrier7274
    @rajendrawarrier72745 ай бұрын

    Very elegant presentation with crisp and clear explanations. Thank you for the amazing effort. This helped me immensely and so would it have been for several others there I bet!

  • @Norman_Fleming
    @Norman_Fleming2 жыл бұрын

    As someone that has been writing code for 40 years I totally agree with your initial premise. If you are writing the SQL you need to understand how it operates and the costs/tradeoffs you may be making. Your video content was very well organized and presented.

  • @ICodeMechanic

    @ICodeMechanic

    2 жыл бұрын

    Thank you for the feedback

  • @parthasarathiramachandran8189

    @parthasarathiramachandran8189

    Жыл бұрын

    Timstamps for various topics covered.. 10:08 Spooling: duplicate aggregation: 18:21 Hashmatch: unsorted data 23:54 KeyLookup: missing data kzread.info/dash/bejne/pmaGko-xk67dZJc.html

  • @anandvardhan2514
    @anandvardhan25142 жыл бұрын

    This is wonderful course. I have been waiting to learn these techniques. Thank you so much for making it.

  • @ICodeMechanic

    @ICodeMechanic

    2 жыл бұрын

    Thanks for the feedback

  • @universecode1101
    @universecode11012 жыл бұрын

    I am a self-taught developer 😍 who after years of Js and React, and on my KZread channel 🧑🏻‍💻 I create projects with React and tailwind or Html and Css… right now I’m learning Python and as you well know, SQL is part of his world. This video comes at the right time 😎

  • @TheFunVampire
    @TheFunVampire Жыл бұрын

    Outstanding video and resource, thank you so much for making this!

  • @ayomidea-s
    @ayomidea-s2 жыл бұрын

    You guys are the best!

  • @noddychoi
    @noddychoi2 жыл бұрын

    This tutorial is absolutely great and helpful !!!!!. Hope to see another vid about MySQL and Postgre !!

  • @ICodeMechanic

    @ICodeMechanic

    2 жыл бұрын

    Thanks for the feedback

  • @alexgeld7173

    @alexgeld7173

    Жыл бұрын

    @@ICodeMechanic So, can I do it with Azure DataStudio on a Mac?

  • @chrisgalvez
    @chrisgalvez Жыл бұрын

    I'm glad have found this jewel. Thank you very much.

  • @kwizerafrank4978
    @kwizerafrank49782 жыл бұрын

    This was what i was looking for!

  • @alekkerm4524
    @alekkerm45242 жыл бұрын

    Great course, exactly what I needed!

  • @ICodeMechanic

    @ICodeMechanic

    2 жыл бұрын

    Thanks for the feedback

  • @rogeriocastellano449
    @rogeriocastellano449 Жыл бұрын

    Congratulations, very comprehensive course.

  • @zusm
    @zusm2 жыл бұрын

    I coincidentally just started my database course yesterday

  • @north-eastblue7326
    @north-eastblue73262 жыл бұрын

    Thank you so much for this course, exactly what I needed.🤩

  • @ICodeMechanic

    @ICodeMechanic

    2 жыл бұрын

    Thanks for the feedback

  • @sujaykha
    @sujaykha2 жыл бұрын

    u r channel deserves 500 million subs

  • @ArunKumar-tx1re
    @ArunKumar-tx1re2 жыл бұрын

    Wow great.this is what I was expecting.thank you so much

  • @ICodeMechanic

    @ICodeMechanic

    2 жыл бұрын

    Thanks for the feedback

  • @SandeepSingh-nn8lu
    @SandeepSingh-nn8luАй бұрын

    Thanks Rajan - great course!

  • @dhatsy2k
    @dhatsy2k Жыл бұрын

    Wonderful.. thank you so much 🙏

  • @P5toraskar1986
    @P5toraskar198610 ай бұрын

    Thank you so much for very imp this and if you have any more like this then please upload it.

  • @dark_joeha2k3r55
    @dark_joeha2k3r552 ай бұрын

    great tutorial. Thank you very much!

  • @shivaganga9148
    @shivaganga914810 ай бұрын

    Awesome Rajan ji it is a great one very easy explanation

  • @Santosh-bx2ub
    @Santosh-bx2ub16 күн бұрын

    Wonderful.

  • @ashenupendra
    @ashenupendra2 жыл бұрын

    Very useful, Thank you !!!

  • @ICodeMechanic

    @ICodeMechanic

    2 жыл бұрын

    Thanks for the feedback

  • @lawb4144
    @lawb41442 жыл бұрын

    Great Course. Thank you so much.

  • @ICodeMechanic

    @ICodeMechanic

    2 жыл бұрын

    Thanks for the feedback

  • @ICodeMechanic

    @ICodeMechanic

    2 жыл бұрын

    Thanks for the feedback

  • @parthasarathiramachandran8189
    @parthasarathiramachandran8189 Жыл бұрын

    Timstamps for various topics covered.. 10:08 Spooling: duplicate aggregation: 18:21 Hashmatch: unsorted data 23:54 KeyLookup: missing data kzread.info/dash/bejne/pmaGko-xk67dZJc.html

  • @hassanraza6244
    @hassanraza6244 Жыл бұрын

    Kindly create a full course on SQL Server - DBA

  • @michelchaghoury9629
    @michelchaghoury96292 жыл бұрын

    Great tutorial we need more SQL Server tutorials, please in the future make a SQL Server DBA, SSIS, SSRS tuts thank you

  • @surajkhot7530

    @surajkhot7530

    2 жыл бұрын

    I also want

  • @joshi1q2w3e

    @joshi1q2w3e

    2 жыл бұрын

    Especially SSIS because jobs everywhere still ask for it but I can’t find resources to learn it.

  • @ICodeMechanic

    @ICodeMechanic

    2 жыл бұрын

    Thanks for the feedback and your suggested topics are noted

  • @lillyoko7838

    @lillyoko7838

    2 жыл бұрын

    פבחבןבפןב

  • @lillyoko7838

    @lillyoko7838

    2 жыл бұрын

    יי פיב

  • @rubeenaparakkal6787
    @rubeenaparakkal6787 Жыл бұрын

    Hi..very useful video..Is there any training available for SQL performance tuning in dba or architect level?

  • @samuelmbah8789
    @samuelmbah87892 жыл бұрын

    I love you guys ❤️❤️❤️

  • @bezosphere
    @bezosphere2 жыл бұрын

    Learning about Databases is so important because almost everything in this world contains a database

  • @ICodeMechanic

    @ICodeMechanic

    2 жыл бұрын

    True

  • @NK-xw4uu
    @NK-xw4uu2 жыл бұрын

    At 1:59:11, you have shown an index as lastname,firstname,degreeid. Will the 3rd sql query be able to utilize this index for degreeid?

  • @NK-xw4uu
    @NK-xw4uu2 жыл бұрын

    Top class quality video

  • @ICodeMechanic

    @ICodeMechanic

    2 жыл бұрын

    Thanks for the feedback

  • @maheshd11
    @maheshd112 жыл бұрын

    Great job from you people.

  • @ICodeMechanic

    @ICodeMechanic

    2 жыл бұрын

    Thanks for the feedback

  • @rajanarora5107

    @rajanarora5107

    2 жыл бұрын

    @@sidch15 🙏

  • @riju1956
    @riju19562 жыл бұрын

    KYA BAAT HAI

  • @sicious1
    @sicious12 жыл бұрын

    Thank you for sharing this good course.Can you share the ppt.

  • @puhgete
    @puhgete Жыл бұрын

    I'm running SQL server 2017 and I don't get any results back when I run the query for 2.6. Also, if I compare the estimated execution plans for both queries I don't see an entry for "Top" with the query using "WHERE NOT EXISTS". For the first issue, I would guess that I could delete all records from the CourseEnrollments table where the CourseOfferingId is 56637 or 58317. With the second issue, I can only guess that my version of SQL is coming up with a different execution plan, and I have no control over that? UPDATE: Looking at the video again, I saw that there is an Index Seek on the CourseEnrollments table, so it looks like the database backup is missing that. I added the following index and my execution plan now matches what is shown in the video: USE [Students] GO CREATE NONCLUSTERED INDEX IX_CourseEnrollments_CourseOfferingID ON [dbo].[CourseEnrollments] ([CourseOfferingId]) GO

  • @Ravi-tq7mv
    @Ravi-tq7mv2 жыл бұрын

    Awesome

  • @ICodeMechanic

    @ICodeMechanic

    2 жыл бұрын

    Thanks for the feedback

  • @juanignaciobrianoquintan7342
    @juanignaciobrianoquintan73422 жыл бұрын

    Selent!!!!!!

  • @saplay3372
    @saplay33722 жыл бұрын

    Great

  • @ICodeMechanic

    @ICodeMechanic

    2 жыл бұрын

    Thanks for the feedback

  • @94964yasumo
    @94964yasumo2 жыл бұрын

    I executed the same query as the section 2.6 at (0:52:30) and got a different result that was an empty table. I wonder why ce.CourseOfferingId is specified as NULL. It supposes to have a not-null constraints. Would you please teach me?

  • @ebenbrittz535

    @ebenbrittz535

    6 ай бұрын

    Yes, I also got this, and the SQL Execution plan is completely different to what is shown in the video.

  • @soumadip_skyy_banerjee
    @soumadip_skyy_banerjee2 жыл бұрын

    ❤️

  • @celestialbeing4767
    @celestialbeing47672 жыл бұрын

    The back bone in either backend and front-end.

  • @saadhussain4681
    @saadhussain4681 Жыл бұрын

    Which version of sql server we will learn in this vide?

  • @MayurManjal
    @MayurManjal2 жыл бұрын

    Request you to please make a Video on SOC or SIEM 🙏 please it will help lot of people like me who can't afford Expensive courses #freeeducationforall

  • @amolmestry4255
    @amolmestry42552 жыл бұрын

    Great course, help me a lot👍

  • @ICodeMechanic

    @ICodeMechanic

    2 жыл бұрын

    Thanks for the feedback

  • @happyvalley8454
    @happyvalley8454 Жыл бұрын

    Presentation was great.Can i get that ppt ?

  • @ShirleySinha-ps5lh
    @ShirleySinha-ps5lh2 ай бұрын

    is there any book from where we can study all these?

  • @metodievmetodiev
    @metodievmetodiev14 күн бұрын

    Hello @codeMechanic .. I am using M1 MacBook Air and was wondering whether I can do this course? I currently installed Azure Data Studio on Docker but not able to do the students.bak exercise thus won't be able to run the queries.. where can I find the data so I do an import?

  • @__________________________6910
    @__________________________69102 жыл бұрын

    Where are the links ?

  • @mohammedabdulsattar125
    @mohammedabdulsattar1252 жыл бұрын

    Hi sir, the tools which u are used in this video we can also use in oracle sql developer or not???

  • @ICodeMechanic

    @ICodeMechanic

    2 жыл бұрын

    Sorry, but this is only for Microsoft SQL Server. it will not be used for Oracle Database

  • @adwaitchavan6638
    @adwaitchavan66382 жыл бұрын

    Can you please build a program for Postgres Performance essentials

  • @ICodeMechanic

    @ICodeMechanic

    2 жыл бұрын

    Try my best to look into this.

  • @adwaitchavan6638

    @adwaitchavan6638

    2 жыл бұрын

    @@ICodeMechanic Thank you

  • @naveenchandran3023
    @naveenchandran30232 жыл бұрын

    Please post pl/sql course it will help many people

  • @freecodecamp

    @freecodecamp

    2 жыл бұрын

    Here are some courses that may help you: SQL Course: kzread.info/dash/bejne/eoyKldyega7Xd7w.html MySQL Course: kzread.info/dash/bejne/d4Zs0a2RZdDfdZM.html University Database Systems Course: kzread.info/dash/bejne/ZpeLzbibc5XIfqg.html

  • @ICodeMechanic

    @ICodeMechanic

    2 жыл бұрын

    Noted

  • @aybe8
    @aybe82 жыл бұрын

    SSIS please!

  • @ICodeMechanic

    @ICodeMechanic

    2 жыл бұрын

    Noted

  • @slahomar1497
    @slahomar14972 жыл бұрын

    What's a great video, are concepts and strategies in this course applicable for PostgresDB ?? or for all SQL languages no matter whether it's SQL server or PostgressDB ????

  • @phenomenon7030

    @phenomenon7030

    Жыл бұрын

    Did you find an answer for your question ?

  • @shawon791
    @shawon7912 жыл бұрын

    Does this work for MySQL database?

  • @Louisianish

    @Louisianish

    2 жыл бұрын

    Probably to an extent, but they are different database management systems. I’m sure a lot of this is applicable to other RDBMS like MySQL and PostgreSQL, though.

  • @ICodeMechanic

    @ICodeMechanic

    2 жыл бұрын

    No Shawon, it only works with Microsoft SQL Server

  • @michaelcheung6290

    @michaelcheung6290

    Жыл бұрын

    ​@@ICodeMechanicoh why? Because these are implemented very differently in other RDBMS?

  • @adityavikramsinha408
    @adityavikramsinha4082 жыл бұрын

    Olaaa

  • @aramj90
    @aramj902 жыл бұрын

    set speed to 1.5x⭐or you will sleep, although very profoundly and well

  • @ICodeMechanic

    @ICodeMechanic

    2 жыл бұрын

    🙂 Thanks for the feedback

  • @orion_yt
    @orion_yt2 жыл бұрын

    2nd

  • @vincentrayalba5936
    @vincentrayalba59362 жыл бұрын

    Can you make solid works video plzzzz.

  • @Louisianish

    @Louisianish

    2 жыл бұрын

    I’m sure they’re working on it. Solid is a fairly new framework, right?

  • @blueshardstudio705
    @blueshardstudio7052 жыл бұрын

    Hi freeCodeCamp! I'd like to ask you if you can make tutorial for C++ desktop development. Thanks 😀

  • @ahmadfaisal6356

    @ahmadfaisal6356

    2 жыл бұрын

    They already make it, go check it

  • @nishikisan6675
    @nishikisan66752 жыл бұрын

    hay bruh

  • @MyJourney2succeed

    @MyJourney2succeed

    2 жыл бұрын

    Hay bruh

  • @simplyritik

    @simplyritik

    2 жыл бұрын

    hay bruh

  • @MyJourney2succeed

    @MyJourney2succeed

    2 жыл бұрын

    Hay bruh

  • @matthewlavancher7978
    @matthewlavancher79782 жыл бұрын

    A+++++

  • @ICodeMechanic

    @ICodeMechanic

    2 жыл бұрын

    Thanks for the feedback

  • @cleanzerg729
    @cleanzerg7292 жыл бұрын

    if youtube allows users to change the accent of the videos based on the scripts, that would be great

  • @h1permonth723
    @h1permonth723 Жыл бұрын

    I have a query, it works very speed but suddenly it's taking more time, I can optimize but I want to know the root cause why it works before why it's not now ?, can you please tell me what can I do to know the root cause

  • @data_home
    @data_home2 жыл бұрын

    Writing...

  • @oooooPizda
    @oooooPizda2 жыл бұрын

    That Indian speaking make me smile)))

  • @ash3rr

    @ash3rr

    2 жыл бұрын

    The Indian makes my ears cry.

  • @thanhpn7188
    @thanhpn71888 ай бұрын

    Can't send 100 likes to your course 😂

  • @dheeraj0076
    @dheeraj00762 жыл бұрын

    We have only one like button 😒 Period

  • @ICodeMechanic

    @ICodeMechanic

    2 жыл бұрын

    Thanks for the feedback

  • @lucasrocha633
    @lucasrocha6332 жыл бұрын

    I don't like SQL Server for example, I need to get a select result and generate script to insert based in values for the query to put in other table or database its impossible without payable tools. In MySQL its easier.

  • @ritasing5858
    @ritasing58582 жыл бұрын

    I have idea to make mobile application Would you like to invest and become a billionaire

  • @princesscrawforddd.6123
    @princesscrawforddd.61232 жыл бұрын

    Your mother

  • @waqar_ahmed3168
    @waqar_ahmed316811 ай бұрын

    You are watching the video 😭

  • @snehilkumar419
    @snehilkumar4199 ай бұрын

    not working- download database backup files - students.bak is not visible to download. please check