Understanding Locking in SQL Server - SQL Server Tutorial

Поделиться
HTML-код
  • Опубликовано: 8 фев 2025

Комментарии • 54

  • @sharma.shubham429
    @sharma.shubham429 6 лет назад +3

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

  • @TheEyepox
    @TheEyepox 6 лет назад +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 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

  • @eespiedrop2
    @eespiedrop2 5 лет назад +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..

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

  • @krismaly6300
    @krismaly6300 9 лет назад +5

    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

  • @Sql_100
    @Sql_100 Год назад +1

    You did great thank you for sharing

  • @ramakrk2009
    @ramakrk2009 9 лет назад +1

    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 лет назад +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!

  • @ottmiller4028
    @ottmiller4028 7 лет назад

    You explained very well and simply. Thank you.

    • @TechBrothersIT
      @TechBrothersIT  7 лет назад

      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

  • @MegaRsha
    @MegaRsha 6 лет назад +2

    Amazing video. That was really helpful

  • @sqltechzpestechz7053
    @sqltechzpestechz7053 2 года назад +1

    U r awesome

  • @technovice2024
    @technovice2024 6 лет назад

    Another very informative video. Thank you so much.

  • @ymadhurireddy
    @ymadhurireddy 9 лет назад +2

    THis made me clear. THank you very much

  • @naomimwakanyamale2695
    @naomimwakanyamale2695 3 года назад +1

    you are the best

  • @anandbalu100
    @anandbalu100 8 лет назад +1

    That was really helpful. Thank you for sharing

    • @TechBrothersIT
      @TechBrothersIT  8 лет назад

      You are most welcome. Thanks you watching.

  • @VijayPatel-rt2yt
    @VijayPatel-rt2yt 9 лет назад +1

    Thank you for sharing your knowledge!

  • @samiliqali4025
    @samiliqali4025 3 года назад +1

    thank you

  • @MdAshiquzzaman
    @MdAshiquzzaman 2 года назад

    It's a really useful .

  • @yaddu8
    @yaddu8 6 лет назад

    good explanation...Thank you

  • @JamesR2187
    @JamesR2187 9 лет назад +1

    Excellent!! very helpful.

  • @karnikjoshi2325
    @karnikjoshi2325 6 лет назад

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

  • @SUDHAKARANDE
    @SUDHAKARANDE 7 лет назад

    nice video. thank you so much

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

  • @parixitsinhchauhan5171
    @parixitsinhchauhan5171 8 лет назад

    nice video.. very informative

  • @salehheba
    @salehheba 8 лет назад

    very helpful ,thank you

    • @TechBrothersIT
      @TechBrothersIT  8 лет назад

      +H Saleh You are welcome and thanks for watching.

  • @naveedshah15
    @naveedshah15 5 лет назад

    big thanks

  • @moncysamu
    @moncysamu 3 года назад +2

    Dead lock explanation is wrong

  • @catsarereallycool
    @catsarereallycool 9 лет назад

    Excellent!

  • @theperfecttime5508
    @theperfecttime5508 8 лет назад

    Thank you!

  • @BlueTik
    @BlueTik 6 лет назад

    Good one

  • @kbipan
    @kbipan 5 лет назад

    well explained :)

  • @robertwest4596
    @robertwest4596 6 лет назад +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