Understanding Locking in SQL Server - SQL Server Tutorial

  Рет қаралды 104,255

TechBrothersIT

TechBrothersIT

Күн бұрын

Пікірлер: 55
@sharma.shubham429
@sharma.shubham429 6 жыл бұрын
Too much knowledge to gain in 25 minutes. Great video 😊
@TheEyepox
@TheEyepox 6 жыл бұрын
at 10min when you were talking about the Update LCK type, it is not a deadlock, you are confusing it with a regular lock, a deadlock is when you have Two Transactions as in your case but let's assume that Tran01 wants to Update Tab1 and then Update Tab2 and Tran02 wants to Update Tab2 and then Update Tab1, you run both procedures or queries alongside and that is when you get a deadlock, at which point SQL Server kills one of those depending on a few criteria, your example when both Transactions are fighting solely on one resource (table in this example) is a regular lock which will just make the last transaction to ask for Update Lock to wait until the first finishes.
@marvinalone
@marvinalone 3 жыл бұрын
yes, you are right coz sql server introduced U lock, but the authoer was also right as he was explaining the scenario and assumed if there were no U lock in sql server, or why sql server introduced U lock
@krismaly6300
@krismaly6300 9 жыл бұрын
Awesome video with good explanation on SQL Server Locks All Developers should know this much information and good refresh for DBAs. Narrator see to be very good at topic. I enjoyed watching this video and recommend others to watch. Thanks for educating the community and appreciate your efforts in publishing this video. Please keep publishing some more videos. Thanks a bunch
@TechandArt
@TechandArt 4 жыл бұрын
Hey u can join this one alao
@eespiedrop2
@eespiedrop2 5 жыл бұрын
That's a really useful explanation. Thanks for taking the time to put it together.
@rajdeeprana0720
@rajdeeprana0720 6 жыл бұрын
Very useful to understand locking in SQL Server.. Thanks Tech Brothers..
@reachmaximum
@reachmaximum 9 жыл бұрын
Simply Awesome,Words are not enough to congratulate you.Thanks a lot.Gaining More and more knowledge from your videos.Look forward for more which can be useful to DBA's.
@TechBrothersIT
@TechBrothersIT 9 жыл бұрын
+Avinash Alladi Thanks very much for kind words dear!
@ramakrk2009
@ramakrk2009 9 жыл бұрын
amazing. No one can beat you sir
@TechBrothersIT
@TechBrothersIT 9 жыл бұрын
+Rama Kambhampati :) Thank you so very much for kind words! I am very happy to know that you liked the tutorial.
@vjeparis
@vjeparis 7 жыл бұрын
your all videos are osm and really helping me in my training period!!
@TechBrothersIT
@TechBrothersIT 7 жыл бұрын
Glad to hear that our effort is helpful. Good luck!
@MegaRsha
@MegaRsha 6 жыл бұрын
Amazing video. That was really helpful
@ottmiller4028
@ottmiller4028 7 жыл бұрын
You explained very well and simply. Thank you.
@TechBrothersIT
@TechBrothersIT 6 жыл бұрын
Hi, thanks for watching the video, please join www.techbrothersforum.com to ask any question that you may have. Tech Brothers and other professionals are online at the forum to help you out quickly. Thanks
@Sql_100
@Sql_100 Жыл бұрын
You did great thank you for sharing
@technovice2024
@technovice2024 6 жыл бұрын
Another very informative video. Thank you so much.
@ymadhurireddy
@ymadhurireddy 9 жыл бұрын
THis made me clear. THank you very much
@anandbalu100
@anandbalu100 8 жыл бұрын
That was really helpful. Thank you for sharing
@TechBrothersIT
@TechBrothersIT 8 жыл бұрын
You are most welcome. Thanks you watching.
@VijayPatel-rt2yt
@VijayPatel-rt2yt 9 жыл бұрын
Thank you for sharing your knowledge!
@TechBrothersIT
@TechBrothersIT 9 жыл бұрын
Ram Patel You are welcome Ram.
@JamesR2187
@JamesR2187 9 жыл бұрын
Excellent!! very helpful.
@TechBrothersIT
@TechBrothersIT 9 жыл бұрын
+James joy Thanks for watching!
@karnikjoshi2325
@karnikjoshi2325 6 жыл бұрын
Can you please explain basic difference between tablock and bulklock practically? I am bit confused in this so..
@yaddu8
@yaddu8 6 жыл бұрын
good explanation...Thank you
@DobbyGloving
@DobbyGloving 8 жыл бұрын
So is it safe to say that shared locks don't actually lock anything? They just let the DB that we are retrieving data from that resource?
@aflibnush
@aflibnush 6 жыл бұрын
James Dobson I guess
@naomimwakanyamale2695
@naomimwakanyamale2695 3 жыл бұрын
you are the best
@MdAshiquzzaman
@MdAshiquzzaman 2 жыл бұрын
It's a really useful .
@sqltechzpestechz7053
@sqltechzpestechz7053 Жыл бұрын
U r awesome
@parixitsinhchauhan5171
@parixitsinhchauhan5171 8 жыл бұрын
nice video.. very informative
@SUDHAKARANDE
@SUDHAKARANDE 7 жыл бұрын
nice video. thank you so much
@moncysamu
@moncysamu 3 жыл бұрын
Dead lock explanation is wrong
@salehheba
@salehheba 8 жыл бұрын
very helpful ,thank you
@TechBrothersIT
@TechBrothersIT 8 жыл бұрын
+H Saleh You are welcome and thanks for watching.
@samiliqali4025
@samiliqali4025 2 жыл бұрын
thank you
@kbipan
@kbipan 5 жыл бұрын
well explained :)
@catsarereallycool
@catsarereallycool 9 жыл бұрын
Excellent!
@theperfecttime5508
@theperfecttime5508 8 жыл бұрын
Thank you!
@robertwest4596
@robertwest4596 6 жыл бұрын
Yeah, your description at 10min is totally wrong. This is not a Deadlock....this is a Blocking situation where 1 transaction will get the X lock, transaction 2 will wait (Blocked) until Transaction 1 is finished. Deadlocking is where Trans1 has a lock on Resource A and wants a lock on Resource B, and at the same time Trans 2 has a lock on Resource B and wants a lock on Resource A. One Trans will be killed in that situation. The situation you have drawn will not cause this situation. You should fix this video as Deadlocking and Blocking are 2 entirely different things.
@naveedshah15
@naveedshah15 5 жыл бұрын
big thanks
@YouTickTech
@YouTickTech 6 жыл бұрын
Good one
@ajiteshmalhotra
@ajiteshmalhotra 3 жыл бұрын
Really you confused me now.
@danezubro
@danezubro 3 жыл бұрын
It's not exactly the right model to explain a deadlock. :)
@gunjanyadav8848
@gunjanyadav8848 2 жыл бұрын
Sir you are too fast. You should speak slowly while teaching a particular topic
@spirridd
@spirridd 5 жыл бұрын
Useless and harmful material
Blocking and Locking: How to Find and Fight Concurrency Problems
58:29
Brent Ozar Unlimited
Рет қаралды 51 М.
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 17 МЛН
My scorpion was taken away from me 😢
00:55
TyphoonFast 5
Рет қаралды 2,7 МЛН
SQL Server Interview Questions & Answers - Wait Types
23:06
SQLMaestros
Рет қаралды 3,7 М.
Kevin Kline - SQL Server Internals and architecture
1:06:09
SQLugSWE
Рет қаралды 93 М.
What is Parameter Sniffing in SQL Server?
18:02
SQLMaestros
Рет қаралды 6 М.
Microsoft SQL Server Performance Tuning, Live
54:30
Brent Ozar Unlimited
Рет қаралды 117 М.
Locking in SQL Server
22:05
ARSLANOV
Рет қаралды 10 М.
SQL Server interview question :- Explain RowNumber,Partition,Rank and DenseRank ?
10:50
.NET Interview Preparation videos
Рет қаралды 529 М.
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 17 МЛН