sql server lost update problem

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 ม.ค. 2025

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

  • @krzysztofs8535
    @krzysztofs8535 8 ปีที่แล้ว +5

    I give like sign to all of your videos. You are best teacher!

  • @DeoSTerriere
    @DeoSTerriere 4 หลายเดือนก่อน

    Nice to see an example and how you can fix this problem. Great video as usual! Thanks kudvenkat

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

    Tnx mate, you are even better than my teacher...

  • @awilgedi5819
    @awilgedi5819 9 ปีที่แล้ว +2

    Hi venkat, you are one off my favorite teachers on life. Who can teach me anything everything the way you explain things and simple way you talk Straight talk.
    I want to know that if you teach a class for a subject? You have thought me Microsoft SQL as well as many anther things.
    You have convinced me to come in India and visit for someday for computer education training if so please where and what?
    I personally leave United States of America Minneapolis, Minnesota.
    I have decided to visit India soon maybe this summer or the fall
    Help me out here I want study SAP BW/BI what is your suggestion?
    Don’t forget you thought me RDMS.
    THANK YOU AND GOD BLESS YOU FOR THE GOOD WORK.
    AGAIN THANK YOU

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

    TDD tutorial would be amazing.
    You have Great Knowledge.
    Regards from Poland

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

    Best Videos to Learn SQL.
    Thank You sir for Such a nice tutorial.

  • @davek9047
    @davek9047 ปีที่แล้ว

    Thank you, this is a really nice illustration of the lost update problem

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

    hi at moment: 7:00, i dont understand, in the left window we have line "wait for delay: 10", so transaction 2 must meet statment update first, why did transaction2 got an error?

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

    Thank you so much for making this video, this is of great help.

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

    Thank you Venkat for all the Tutorials on SQL. They have been very helpful to me. :)

  • @iam_zain
    @iam_zain 3 หลายเดือนก่อน

    @4:23 since its read committed , how come transaction 2 got started, when first transaction is in progress?

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

    Thank you very much! It is so understandable and cool!

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

    Hi Venkat, your way of explaining concepts is above Awesome.
    When I use the Isolation Level 'Repeatable Read' I am getting the error for Transaction 1 instead of Transaction 2 although I am running Transaction 1 first and then Transaction 2. Can you please explain why?

    • @usmanrahat5254
      @usmanrahat5254 4 ปีที่แล้ว

      same here

    • @usmanrahat5254
      @usmanrahat5254 4 ปีที่แล้ว

      I did on my laptop and same issue. Tried on different laptop then it worked. Don't know why.

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

      worked issues was with Database security settings.

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

      how to resolve it

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

    super star venkat sir as always

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

    You are the best!

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

    Hi sir, Hi venkat community! I have a question: the lock afects all the table or only the records that are being updated?? Thnaks, sir

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

    Awesome vidoes sir.. If I am not wrong I have a small doubt Sir.
    When there is a transaction happening and tblInventory table got blocked with its default isolation leven in 1st transaction how can a 2nd transaction begin for the same tblInventory table.

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

      Because it is a SELECT statement, it can "see" the committed data.
      This wouldn't be the case if it was an UPDATE statement.

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

      @@MrJonnis13 thnx for your reply , but can you explain further more as i understood from the past video the read committed level will isolate this second transaction am i right?

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

      @@hamadaalashry4689 I understand the same from the previous video that Transaction 1 will have the default isolation level which is read committed, so how can transaction 2 read the uncommitted data due to the delay while transaction 1 is still running!!!

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

      @@hatemgamil2738 read un comitted works when one transaction is read and the other is insert or update in transaction , while in this case both transactions are reading thats why i understood after some search

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

    You saved my time so much. Please adopt me

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

    When I demo it on winform C# application , it notifies a deadlock error message and application was stopped. How should I do ?

  • @dineshmanoharan2423
    @dineshmanoharan2423 4 ปีที่แล้ว +3

    I hope this cant be considered as Lost update problem but a bad coding. SQL Server locks the rows that are modified for the entire transaction. So if the update is written like below this issue would not happen.
    Update tblInventory
    Set itemStocks = itemstocks - 1

    • @amritraju
      @amritraju 4 ปีที่แล้ว +3

      You are right, by default lost update is not possible in SQL server, this is just a theoretical concept

  • @priyadarshini3284
    @priyadarshini3284 5 หลายเดือนก่อน

    I try this query. Tran1 is dead lock & Tran1 got o/p 8.why? Can anyone explain?

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

    I tried to use it but iti ddn't work! The second transaction just froze and it didn't show any error messages!!! please help!

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

    One word..perfect

  • @johnson1262
    @johnson1262 ปีที่แล้ว

    Creating a transaction table system would prevent this error. It can log what is reduce and what is added.

  • @raqibulAlam-su3jo
    @raqibulAlam-su3jo 9 ปีที่แล้ว +3

    Nice tutorial.Go ahead .
    Please give like if you like it.

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

    this is not a lost update, you are wrong!, even repeat able read prevent lost update, why you demo a lost update while using repeat able read?

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

    Nice video

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

    🙏🙏🙏❤️🙏🙏🙏

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

    sir kudvenkat
    can you do tutorials for c# network programming

    • @Kumar-id7qs
      @Kumar-id7qs 9 ปีที่แล้ว

      toxido mask Agreed with Toxido, Venkat sir please record some tutorials over C# networking programming concepts also..thanks sir.

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

    nice..

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

    ❤️❤️

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

    Hi sir

  • @prafulrane9037
    @prafulrane9037 24 วันที่ผ่านมา

    anyone in 2025?