This website uses cookies to ensure you get the best experience on our website. Learn more

SQL Server Performance Tuning and Query Optimization


Pinal Dave - SQL Server Performance Tuning Made Easy

Every new release of SQL Server brings a whole load of new features that an administrator can add to their arsenal of efficiency. SQL Server 2016 / 2017 has introduced many new features. In this 55 minute session, we will be learning quite a few of the new features of SQL Server 2016 / 2017. Here is the glimpse of the features we will cover in this session. - Captured Live on Ustream at

Microsoft SQL Server Performance Tuning, Live

Brent's session at Microsoft Ignite 2015 in Chicago. He covers trace flag 4199, columnstore indexes, scaling out to AG secondaries, Cardinality Estimator changes, delayed durability, in-memory OLTP, Buffer Pool Extensions, and more.

SQL Server Performance Tuning and Query Optimization

SQL Server Performance Tuning and Query Optimization

Video talks about
SQL Server Performance Tuning and Query Optimization

Efficient SQL server schema design.
Indexes Fine Tuning.
Queries Optimization.
Build efficient stored procedures.
Efficient transactions

For more SQL Server , SSIS,SSAS and SSRS Videos
Please check the below channel ....

Part of SQL Server Interview Questions and Answers..

Please subscribe for more videos ...

How To Troubleshoot a Slow Running Query in SQL Server Extended Events & Wait Stats (by Amit Bansal)

In this video, you will understand how to track waits stats for a given query/session using Extended Events.

Suggest us topics that you wish to learn through our videos:

Learn about Amit Bansal’s ultimate video course on SQL Server Performance Tuning:

Stay Connected with Amit Bansal and subscribe to the exclusive list of his session attendees (conference and pre-cons), class participants & video viewers. You will get just one email in two weeks with good links to continue your learning.

Also, you can join ‘SQLMaestros Champs’ Telegram group and participate in SQL Server discussions. It’s a forum for SQL Server lovers -

If you work on other technologies in MS Data + AI Stack, join this group:

Video resources including presentation, demo files, code snippets and more learning material is available on (Join for free and access all the resources)

Connect With The Speaker (Amit Bansal)
-Follow on Twitter:
-Follow on FaceBook at
-Follow on LinkedIN:
-Facebook Page:

Connect with SQLMaestros:
- Email us:

Data Platform Summit
Asia's largest learning event on AI, Data & Advanced Analytics.

SQLMaestros Video Courses
Amit Bansal’s popular SQL Performance Tuning course is now going live in video format.
SQLMaestros Hands-On-Labs
Want to practice SQL, Azure & BI concepts, step-by-step with exercises, screenshots, instructions & explanations? Get access to 100+ labs covering the entire Microsoft Data Platform stack. Try SQLMaestros Hands-On-Labs – the new way of practical, self-paced learning. Anytime. Anywhere.


SQLMaestros Learning Kits
The kit comprises of PowerPoint presentations, lab manuals, workbook & instructor demos & notes. The kit is based on Amit Bansal’s Performance Tuning Master Class.
SQL Server Health Check
If your SQL Server deployments are not performing good or if you have seen early signs of performance degradation, SQLMaestros can help you with a thorough health check.

Have technical questions?

Join the largest SQL group on FB

Our LinkedIn group

Our Telegram group on mobile

DataPlatformGeeks (DPG) Community
Join the fastest growing community of data & analytics professionals

Why Join DPG?

-Attend all events hosted by DPG, including SQLMaestros Special Events
-Get access to free videos, labs, magazines and host of learning resources
-Download all events & conference material
-Learn new skills. Sharpen existing skills
-Be part of Asia’s Largest Data/Analytics Community
-Opportunity to be a regional mentor & speaker at our events
-Immense technical & professional development

If you wish to speak at DataPlatformGeeks events, fill out this form:

If you wish to become a Regional Mentor with DataPlatformGeeks, fill out this form:

Watch all recorded DPG webinars here:

SQL Server Performance Tuning and Query Optimization | Sql Server Interview Question Part 25


Find Us On YouTube- Subscribe Channel to watch Database related videos

For Quiz-

Find Us On FaceBook-

SQL Complex Queries , Query Optimization and Interview Questions SQLServer 2016

In above lecture new SQL Server 2012 - SQL Server 2016 TSQL features are covered. Eg:
1. Running total using SUM and OVER operator
2. Lead and Lag
3. First_Value and Last_Value
5. IIF
6. Choose
7. Dense Tank
8. Interview Questions
9. Query optimization or Performance tuning
Link for script and backup file:

SQL Database Optimization

We can use deep reinforcement learning to optimize a SQL database, and in this video we'll optimize the ordering of a series of SQL queries such that it involves the minimum possible memory/computation footprint. Deep RL involves using a neural network to approximate reinforcement learning functions, like the Q (quality) function. After we frame our database as a Markov Decision Process, I'll use Python to build a Deep Q Network to optimize SQL queries. Enjoy!

Code for this video:

Please Subscribe! And like. And comment. That's what keeps me going.

Want more education? Connect with me here:

More learning resources:

Join us in the Wizards Slack channel:

School of AI:

And please support me on Patreon:

Signup for my newsletter for exciting updates in the field of AI:

Hiring? Need a Job? See our job board!:

Need help on a project? See our consulting group:

Hit the Join button above to sign up to become a member of my channel for access to exclusive content!

10 Query Tuning Techniques Every SQL Programmer Should Know

Kevin Kline
Aaron Bertrand

Stored Procedure Optimization Techniques

Performance Tunning :
Procedure :
1.Set Nocount On
2.Set Isolation level Read Uncommited / Nolock
3.Missing Indexes :
4.Scalar function
5.COvering index -- include
6.Partition .
7.Proper Index -- Column Store
9.Try to minimize Physical read
10.Fragmentation issue (Index rebuilding + Reorganizing )
11.understand Execution planning (opertor )

Build optimize sql query and performance tuning

Build optimize sql query and performance tuning

SQL Server Performance Tuning Made Easy

SQL Server Performance Tuning is still a mystery to many. Quite often even an experienced SQL Server DBA, often gets confused as to how to figure out where to start with this entire process. In this module we are going to learn about how to get started with SQL Server Performance Tuning. We will go over some very important scripts which will help us to get started with the SQL Server Performance Tuning exercise. At the end of the session the author will share his three important scripts which he uses at his customer sites all the time.

Pinal Dave has been a part of the industry for more than eleven years. During his career he has worked both in India and the US, mostly working with SQL Server Technology – right from version 6.5 to its latest form. Pinal has worked on many performance tuning and optimization projects for high transactional systems. He received his Master of Science from the University of Southern California and a Bachelors of Engineering from Gujarat University. Additionally, he holds many Microsoft certificates. He has been a regular speaker at many international events like TechEd, SQL PASS, MSDN, TechNet and countless user groups.

Pinal writes frequently writes on his blog on various subjects regarding SQL Server technology and Business Intelligence. His passion for the community drives him to share his training and knowledge. His previous experience includes Technology Evangelist at Microsoft and Sr. Consultant at SolidQ. Prior to joining Microsoft he was awarded the Microsoft MVP award for three continuous years for his outstanding community service and evangelizing SQL Server technology. He was also awarded the Community Impact Award – Individual Contributor.
Links to PASS and our Site:



Why to Go:

Use our discount code VGDISM843 to save $150.00 off the full price of PASS

Registration can be completed here:

execution plan in sql server | Sql server performance tuning Part 3

Graphical Execution Plan Icons:


Find Us On YouTube- Subscribe Channel to watch Database related videos

For Quiz-

Find Us On FaceBook-

12 Ways To Rewrite SQL Queries for Better Performance

In this episode we explore a variety of ideas for rewriting queries to improve performance when you can't do things like change server settings or modify indexes.

Subscribe and turn on notifications to never miss a weekly video:

Read the full post with examples:

Follow me on Twitter:

How to check why SQL Server is slow

SQL Server Performance monitoring and troubleshooting is a critical part of SQL Server Database Administration. This video shows how to perform simple 1-2-3 DBA's checks when investigating complaints about a SQL Server slowness. Within a couple of minutes the DBA does the checks and writes an email with details and illustrations on what he has discovered. Checking SQL Server CPU utilization, disk IO activities, blocking, active processes, examining the query execution plan and other steps of SQL Server performance troubleshooting and monitoring are done easily. For more videos on SQL Server performance monitoring visit

Optimizing SQL Performance

Held on July 12 2018

In July's session we mainly looked at performance. Highlights include:

1:30 How does the database process subqueries?
5:20 Performance: comparing insert ... select to create tmp table, insert select from tmp; DDL in PL/SQL; dynamic SQL problems
12:45 18c private temporary tables; tables specific to a session; DDL you can rollback across!
21:00 Improving update performance: things to watch for; insert vs. update; join-update - create a view instead; create table as select update
34:05 Analytic function performance: first_value non-determinism; min keep vs first_value; computing function in a subquery; indexes for analytic functions

AskTOM Office Hours offers free, monthly training and tips on how to make the most of Oracle Database, from Oracle product managers, developers and evangelists.

Oracle Developers portal:
Sign up for an Oracle Cloud trial:


SQL Server Query Tuning Best Practices - Part 1

SQL Server MVPs Aaron Bertrand and Kevin Kline begin their series on query tuning best practices. They go over some tips and tricks for writing queries. First, Kevin goes over query tuning methodology and what is needed to measure query performance. Then, Aaron discusses Default Cursors, Correlated Sub-Queries, and Not In.

Find more information about our products:
Plan Explorer:

what is query optimizer | query optimizer in sql server | Sql server performance tuning part 4



Sql server performance tuning interview question and answers

Find Us On YouTube- Subscribe Channel to watch Database related videos

For Quiz-

Find Us On FaceBook-

6 - SQL Server 2014 - Optimizing and Troubleshooting Queries

Learn how to tune poorly performing queries, and get tips on dealing with common performance issues and tools you can use to analyze and tune workloads. More Articles, Scripts and How-To Papers on

Simple TSql Query Tuning Techniques

This is a starter video showing simple techniques for best practices TSql query performance tuning.



Check Also