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

  Рет қаралды 134,568

SQLMaestros

SQLMaestros

Күн бұрын

Пікірлер: 41
@shatabdidey3056
@shatabdidey3056 5 жыл бұрын
So this was the best vedio I have seen so far in SQL Administration..hoping to learn much more
@imcsingapore7215
@imcsingapore7215 5 жыл бұрын
awesome. would like to see now, how will you going to optimize the query statement itself. thanks
@ramyanagashree
@ramyanagashree 6 жыл бұрын
OK, we got to know which query is waiting. But the query which is waiting is not the real culprit. How to find the query which made that Select query to wait?
@itintegration1734
@itintegration1734 4 жыл бұрын
It is the transaction query within the update statement that block the server's ressources. Until it release the resources the sql select statement will wait for the end of the transaction statement :)
@danezubro
@danezubro 4 жыл бұрын
@@itintegration1734 And if it's was 100 transactions ? Which query is waiting ?
@RamSaun
@RamSaun 3 жыл бұрын
Guys I have a question - In this case we all knew there was another update query running on another window and when we rollback that tran we could then see the logs of extended events But what if some tran is in progress and executed by another user and we don't know who is running that tran and unless and until that tran is completed or rolled back we would not see any logs. What to do in this scenario ? @SQLMaestros
@ademolasanni4443
@ademolasanni4443 9 ай бұрын
That's a good demo. So after capturing the wait type what next? Becos seeing the issue causing the slowness is good how to deal with it also matter. Thanks
@fbifido2
@fbifido2 3 жыл бұрын
if you have a database running in production, how would you know what session to filter on ?
@amitkumarsharma25
@amitkumarsharma25 6 жыл бұрын
Hi Amit, If we talk about the same in two sp's then after identifying the LCKMS lock on query. How would we able to know which stored procedure is blocking our query.
@kotekr4383
@kotekr4383 3 жыл бұрын
Excellent Bansal
@Subba_Chems
@Subba_Chems 4 жыл бұрын
can we use DBCC OpenTran?
@k-fo9pq
@k-fo9pq 6 жыл бұрын
we mostly have slow running queries issues in prod..for which i dont have access. So do i need to check with DBA for this?
@zohebkhan9066
@zohebkhan9066 5 жыл бұрын
Awesome sir, Very helpful
@maaz77muslimKarachi
@maaz77muslimKarachi 4 жыл бұрын
really helpful video sofar, if anyone would help me out to lear the SQL dba spacially, it would be appreciated.
@banisabrown143
@banisabrown143 6 жыл бұрын
Brilliant content! Very helpful!
@brad_mcallister
@brad_mcallister 3 жыл бұрын
I just learned a thing or two, thx
@u2lover10
@u2lover10 5 жыл бұрын
Excellent Video !
@sakauk7566
@sakauk7566 5 жыл бұрын
Hi Amit, I have created 2 XEvents on my server to track any deadlocks or long running quires (Longer than 2 minutes), they worked very well but i had major performance degradation on the server knowing that i didnt pick any global events. I had to stop those events and the performance picked back to normal. Any clues on what has gone wrong? Im sure XEvents supposed to be much better and less consuming than profiler.
@israel1919
@israel1919 4 жыл бұрын
Thanks a lot for the help.
@theislamicvoyager
@theislamicvoyager 6 жыл бұрын
Really very helpful and well explained
@AliciaMarkoe
@AliciaMarkoe 5 жыл бұрын
Excellent, thank you so much!
@muhammadumair5019
@muhammadumair5019 3 жыл бұрын
Whats the solution?
@madanagrawal1465
@madanagrawal1465 6 жыл бұрын
Very good article
@contactsan12
@contactsan12 3 жыл бұрын
everything is cool but wy are you wearing the headphones ??
@kholekunal
@kholekunal 5 жыл бұрын
Good video.. helpful
@tamito9298
@tamito9298 6 жыл бұрын
Excellent explaination Thank You !!!
@danezubro
@danezubro 3 жыл бұрын
Very correct but incomplete. We know it's blocked, but we don't know who's blocking it.
@labonka
@labonka 4 жыл бұрын
Easier to check blocking session in sysprocess
@sucharitha9365
@sucharitha9365 5 жыл бұрын
i am trying join in your website but i didn't find out math Captcha
@lehuyluyen
@lehuyluyen 6 жыл бұрын
very useful
@ayubkarem8697
@ayubkarem8697 7 жыл бұрын
Hi Bansal i have installed SQL server 2012 Express ,and i created table with 5000,000 Records ,but its performance execution is too slow what should i do with it? many thanks for replay
@RameshBabusql
@RameshBabusql 7 жыл бұрын
ayub Karem SQL Server Express Edition uses 1 processor and 1 GB RAM .
@tamito9298
@tamito9298 6 жыл бұрын
Create necessary indexes for Your table depends on needs (I don`t know what the phrase "performance execution is too slow" - may be it means only ""Select * from Table"..
@pramodmaurya6610
@pramodmaurya6610 3 жыл бұрын
Thanks for your efforts and knowledge sharing.. thanks
@muhammadafzal237
@muhammadafzal237 3 жыл бұрын
It was very complex
@shivendrakumaryadav5811
@shivendrakumaryadav5811 6 жыл бұрын
Super like :)
@mohammadhoque51
@mohammadhoque51 6 жыл бұрын
Wondefull. Learn something
@scottdhartman
@scottdhartman 6 жыл бұрын
oh ... he's saying SPID!!! OK, I un-disliked this video... sorry, I've always heard ESS PEE EYE DEE, not "SPID"... cool cool!
@pratpittman
@pratpittman 5 жыл бұрын
Scott Hartman oh really
@tinavanrikxoord9955
@tinavanrikxoord9955 3 жыл бұрын
Excellent instruction. Thank you.
@purushotambhardwaj
@purushotambhardwaj 6 жыл бұрын
Excellent explaination Thank You !!
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,7 МЛН
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
SQL Server Interview Questions & Answers - Wait Types
23:06
SQLMaestros
Рет қаралды 3,8 М.
SQL Server Performance Tuning Made Easy - Pinal Dave | Craft 2019
47:13
Profiling Query Performance In SQL Server With Extended Events The Easy Way
15:02
Erik Darling (Erik Darling Data)
Рет қаралды 2,2 М.
Improve SQL Server performance using profiler and tuning advisor
13:12
.NET Interview Preparation videos
Рет қаралды 354 М.
Simon Sinek's Advice Will Leave You SPEECHLESS 2.0 (MUST WATCH)
20:43
Alpha Leaders
Рет қаралды 2,7 МЛН
SQL Server Index Tuning - Multi Column Seeking (by Amit Bansal)
18:15
Brent Ozar_Watch Brent Tune Queries
1:06:57
SQLugSWE
Рет қаралды 65 М.
How to Troubleshoot a Slow Running Query in SQL Server by Amit Bansal (Recorded Webinar)
57:13
DataPlatformGeeks & SQLServerGeeks
Рет қаралды 14 М.