How to simulate a Blocking for testing purposes?

  • How to simulate a Blocking for testing purposes ?

    --sntiwary

     

  • Open two windows in Query Analyzer.  In the first window put:

    Begin Transaction

    then update a row in a table.

    Execute.

    In the second window execute the same update statement.  This one should get blocked by the first update because it will keep the exclusive lock until you issue a commit transaction statement.

    Robert W. Marda
    Billing and OSS Specialist - SQL Programmer
    MCL Systems

  • thanks a lot for the infiormation

    --sntiwary

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply