Results 1 to 3 of 3

Thread: MS SQL table locked - [RESOLVED]

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2002
    Location
    UK
    Posts
    147

    MS SQL table locked - [RESOLVED]

    i was wondering what would happen if you tried to access a table in MS SQL which had already been locked by another process. Would it generate an error or just hold the process off untill the table was unlocked?
    Last edited by mik706; Jan 16th, 2004 at 07:51 AM.
    Mik706

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Depends upon the lock type, and what you're doing. If you're trying to edit what the other user's editing, an error is raised. You can handle that error.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jul 2002
    Location
    UK
    Posts
    147
    I am locking the table pessimistically to insert rows. So I assumed that if another app tried to insert rows whilst the table is locked it would generate an error, I was just having problems proving it.
    Mik706

Posting Permissions

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



Click Here to Expand Forum to Full Width