Understanding Locking in SQL Server - SQL Server Tutorial

แชร์
ฝัง

ความคิดเห็น • 55

  • @sharma.shubham429
    @sharma.shubham429 6 ปีที่แล้ว +2

    Too much knowledge to gain in 25 minutes. Great video 😊

  • @TheEyepox
    @TheEyepox 5 ปีที่แล้ว +18

    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 2 ปีที่แล้ว

      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 ปีที่แล้ว +6

    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 4 ปีที่แล้ว +1

    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..

  • @Sql_100
    @Sql_100 ปีที่แล้ว +1

    You did great thank you for sharing

  • @ramakrk2009
    @ramakrk2009 8 ปีที่แล้ว +1

    amazing. No one can beat you sir

    • @TechBrothersIT
      @TechBrothersIT  8 ปีที่แล้ว

      +Rama Kambhampati :) Thank you so very much for kind words! I am very happy to know that you liked the tutorial.

  • @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!

  • @ottmiller4028
    @ottmiller4028 6 ปีที่แล้ว

    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

  • @vjeparis
    @vjeparis 7 ปีที่แล้ว +1

    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 ปีที่แล้ว +2

    Amazing video. That was really helpful

  • @technovice2024
    @technovice2024 6 ปีที่แล้ว

    Another very informative video. Thank you so much.

  • @ymadhurireddy
    @ymadhurireddy 8 ปีที่แล้ว +2

    THis made me clear. THank you very much

  • @anandbalu100
    @anandbalu100 7 ปีที่แล้ว +1

    That was really helpful. Thank you for sharing

    • @TechBrothersIT
      @TechBrothersIT  7 ปีที่แล้ว

      You are most welcome. Thanks you watching.

  • @VijayPatel-rt2yt
    @VijayPatel-rt2yt 9 ปีที่แล้ว +1

    Thank you for sharing your knowledge!

  • @MdAshiquzzaman
    @MdAshiquzzaman 2 ปีที่แล้ว

    It's a really useful .

  • @naomimwakanyamale2695
    @naomimwakanyamale2695 3 ปีที่แล้ว +1

    you are the best

  • @JamesR2187
    @JamesR2187 8 ปีที่แล้ว +1

    Excellent!! very helpful.

  • @samiliqali4025
    @samiliqali4025 2 ปีที่แล้ว +1

    thank you

  • @sqltechzpestechz7053
    @sqltechzpestechz7053 ปีที่แล้ว +1

    U r awesome

  • @yaddu8
    @yaddu8 6 ปีที่แล้ว

    good explanation...Thank you

  • @SUDHAKARANDE
    @SUDHAKARANDE 7 ปีที่แล้ว

    nice video. thank you so much

  • @parixitsinhchauhan5171
    @parixitsinhchauhan5171 7 ปีที่แล้ว

    nice video.. very informative

  • @karnikjoshi2325
    @karnikjoshi2325 6 ปีที่แล้ว

    Can you please explain basic difference between tablock and bulklock practically? I am bit confused in this so..

  • @salehheba
    @salehheba 8 ปีที่แล้ว

    very helpful ,thank you

    • @TechBrothersIT
      @TechBrothersIT  8 ปีที่แล้ว

      +H Saleh You are welcome and thanks for watching.

  • @catsarereallycool
    @catsarereallycool 9 ปีที่แล้ว

    Excellent!

  • @moncysamu
    @moncysamu 3 ปีที่แล้ว +2

    Dead lock explanation is wrong

  • @kbipan
    @kbipan 5 ปีที่แล้ว

    well explained :)

  • @naveedshah15
    @naveedshah15 5 ปีที่แล้ว

    big thanks

  • @theperfecttime5508
    @theperfecttime5508 7 ปีที่แล้ว

    Thank you!

  • @YouTickTech
    @YouTickTech 6 ปีที่แล้ว

    Good one

  • @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

  • @robertwest4596
    @robertwest4596 5 ปีที่แล้ว +1

    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.

  • @ajiteshmalhotra
    @ajiteshmalhotra 3 ปีที่แล้ว

    Really you confused me now.

  • @danezubro
    @danezubro 3 ปีที่แล้ว +1

    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