Results 1 to 9 of 9

Thread: Dummy question

  1. #1
    Join Date
    Dec 2003
    Posts
    14

    Question Dummy question

    Hello,

    For sure that this is a dummy question but can you explain me how SQL Server reacts to the fact that we have the same application running in two different pc's and this two applications intent to insert,update, delete or even read a record from the same table

    Does "he" blocks the record until one of them leave the table ??? And if the other tries to update at the same time ???

    Thanks,
    Paulo

  2. #2
    Join Date
    Sep 2002
    Posts
    5,938
    They can read from same table at same time, but not other processes. You can use row level locking to reduce blocking.

  3. #3
    Join Date
    Dec 2003
    Posts
    14

    Question

    First of all thank you for your time,

    How can I do this 'row level locking' ?

    Thanks,
    Paulo

  4. #4
    Join Date
    Mar 2003
    Location
    Woking, UK
    Posts
    152
    You Have To Be Happy With What You Have To Be Happy With (KC)

  5. #5
    Join Date
    Sep 2002
    Posts
    5,938
    Or check it in sql books online.

  6. #6
    Join Date
    Nov 2002
    Location
    New Jersey, USA
    Posts
    3,932
    If you are using sql 7.0 or 2000, you don't have to do anything to use row level locking, it's used by default.

  7. #7
    Join Date
    Sep 2002
    Posts
    5,938
    You can enforce it with locking hint 'rowlock'.

  8. #8
    Join Date
    Mar 2004
    Location
    Los Angeles
    Posts
    1

    Cool Where can I find SQL Help

    Where can i find the SQL Books Online
    also can u tell me where can i find more information like basic and advanced queries and tutorials for advanced SQL

    Thank you

    Saurin

  9. #9
    Join Date
    Sep 2002
    Location
    Fantasy
    Posts
    4,254
    If you have SQL Server installed on your machine, it comes with BOL (books On Line) also called as HELP.

    For basic ANSI SQL learning go to www.sqlcourse.com

    For advanced SQL learning you have to learn from BOL and forums like this.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •