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?
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 :)
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
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
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.
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.
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
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"..
awesome. would like to see now, how will you going to optimize the query statement itself. thanks
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?
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 :)
@@itintegration1734 And if it's was 100 transactions ? Which query is waiting ?
So this was the best vedio I have seen so far in SQL Administration..hoping to learn much more
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
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
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.
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?
if you have a database running in production, how would you know what session to filter on ?
Excellent Bansal
Awesome sir, Very helpful
really helpful video sofar, if anyone would help me out to lear the SQL dba spacially, it would be appreciated.
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.
can we use DBCC OpenTran?
I just learned a thing or two, thx
Excellent Video !
Really very helpful and well explained
Thanks a lot for the help.
Very correct but incomplete. We know it's blocked, but we don't know who's blocking it.
everything is cool but wy are you wearing the headphones ??
Very good article
Excellent, thank you so much!
Brilliant content! Very helpful!
Whats the solution?
Good video.. helpful
Excellent explaination
Thank You !!!
Easier to check blocking session in sysprocess
i am trying join in your website but i didn't find out math Captcha
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
ayub Karem
SQL Server Express Edition uses 1 processor and 1 GB RAM .
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"..
Thanks for your efforts and knowledge sharing.. thanks
It was very complex
very useful
Wondefull. Learn something
Super like :)
oh ... he's saying SPID!!! OK, I un-disliked this video... sorry, I've always heard ESS PEE EYE DEE, not "SPID"... cool cool!
Scott Hartman oh really
Excellent instruction. Thank you.
Excellent explaination
Thank You !!