Simultaneous Database Access

Results 1 to 2 of 2

Thread: Simultaneous Database Access

  1. #1
    Join Date
    Dec 1969

    Default Simultaneous Database Access

    I have a database on my site. When 2 visitors log on at the same time only one person gets through and the other gets a runtime error. Is there any way around this thats maybe similar to locking an application variable.

  2. #2
    Join Date
    Dec 1969

    Default RE: Simultaneous Database Access

    If you are using you might want to try using the SyncLock statement. <BR><BR><BR><BR>It can be used to make sure that a single bit of code can only be executed by one person at a time. You would put all of the database access code within the SyncLock and End SyncLock. Especially closing and disposing the connection object.<BR><BR>I think the c# equivalent is:<BR>

Posting Permissions

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