PC Review


Reply
Thread Tools Rate Thread

Connections String

 
 
Charles A. Lackman
Guest
Posts: n/a
 
      18th Feb 2005
Hello,

I am using a Jet4.0 (Access) database as a datastore that 10 computers are
updating on a regular basis. I am using ExecuteNonQuerry to send the
updates with parameters from an unconnected state. The problem I am having
is when more than 1 person is sending an update the others attempt is not
accepted. I need all people to be able to concurrently update without the
database being locked.

Mode is set to Share Deny None

I have noticed that there is a Database Locking Mode that I have not set

Database Locking Mode=1

What does the Modes mean and will this fix the problem I am having. This
problem also happens when 2 people try to read the data from the datastore
at the same time.
Would this problem be solved if I used a different database like Dbase??

Thanks,

Chuck


 
Reply With Quote
 
 
 
 
Scott M.
Guest
Posts: n/a
 
      18th Feb 2005
"I need all people to be able to concurrently update without the database
being locked."

Then you really should not be using Access as your data store. Access is
not meant to be used like this. Use SQL Server instead.






"Charles A. Lackman" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello,
>
> I am using a Jet4.0 (Access) database as a datastore that 10 computers are
> updating on a regular basis. I am using ExecuteNonQuerry to send the
> updates with parameters from an unconnected state. The problem I am
> having is when more than 1 person is sending an update the others attempt
> is not accepted. I need all people to be able to concurrently update
> without the database being locked.
>
> Mode is set to Share Deny None
>
> I have noticed that there is a Database Locking Mode that I have not set
>
> Database Locking Mode=1
>
> What does the Modes mean and will this fix the problem I am having. This
> problem also happens when 2 people try to read the data from the datastore
> at the same time.
> Would this problem be solved if I used a different database like Dbase??
>
> Thanks,
>
> Chuck
>



 
Reply With Quote
 
William \(Bill\) Vaughn
Guest
Posts: n/a
 
      20th Feb 2005
What do you really expect to happen? Should the update from user A be
over-ridden by user B and every other user who comes afterward? This is
possible, (even in JET/Access) however, JET is much slower at this than SQL
Server. Yes, JET locks the data row, page or table while the update is
taking place and since using JET means doing physical IO over the new, it's
especially slow. SQL Server and other DBMS systems are more efficient at
handling larger loads. 10 users is not much, but if you're seeing locking,
you need to write exception handlers to deal with this. Most DBMS updates
require some sort of concurrency management scheme. Last change wins, data
owner wins, first change wins and many others. A brute-force approach is not
the most elegant, but it can work if you code it (and the exception
handlers) correctly.

--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
www.betav.com/blog/billva
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________

"Charles A. Lackman" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello,
>
> I am using a Jet4.0 (Access) database as a datastore that 10 computers are
> updating on a regular basis. I am using ExecuteNonQuerry to send the
> updates with parameters from an unconnected state. The problem I am
> having is when more than 1 person is sending an update the others attempt
> is not accepted. I need all people to be able to concurrently update
> without the database being locked.
>
> Mode is set to Share Deny None
>
> I have noticed that there is a Database Locking Mode that I have not set
>
> Database Locking Mode=1
>
> What does the Modes mean and will this fix the problem I am having. This
> problem also happens when 2 people try to read the data from the datastore
> at the same time.
> Would this problem be solved if I used a different database like Dbase??
>
> Thanks,
>
> Chuck
>



 
Reply With Quote
 
Mary Chipman [MSFT]
Guest
Posts: n/a
 
      21st Feb 2005
In addition to what Bill Vaughn said, you should also consider the
database schema and partition your Access tables so that users aren't
modifying the same rows at the same time. You may need to break tables
with many columns into multiple tables with 1-1 joins on the PK. For
example, if you store employee data in one huge table and the HR
department is updating an employee row at the same time as the Sales
department is, then you've got a problem. You should alway take into
account the table design when you are having concurrency problems, no
matter which RDBMS you are using. Designing to eliminate them makes
hassles like this one go away.

Mary

On Fri, 18 Feb 2005 12:35:11 -0800, "Charles A. Lackman"
<(E-Mail Removed)> wrote:

>Hello,
>
>I am using a Jet4.0 (Access) database as a datastore that 10 computers are
>updating on a regular basis. I am using ExecuteNonQuerry to send the
>updates with parameters from an unconnected state. The problem I am having
>is when more than 1 person is sending an update the others attempt is not
>accepted. I need all people to be able to concurrently update without the
>database being locked.
>
>Mode is set to Share Deny None
>
>I have noticed that there is a Database Locking Mode that I have not set
>
>Database Locking Mode=1
>
>What does the Modes mean and will this fix the problem I am having. This
>problem also happens when 2 people try to read the data from the datastore
>at the same time.
>Would this problem be solved if I used a different database like Dbase??
>
>Thanks,
>
>Chuck
>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Array of db connections with string subscription John Microsoft ADO .NET 7 8th Jan 2008 11:52 AM
Array of db connections with string subscription John Microsoft Dot NET Framework Forms 7 8th Jan 2008 11:52 AM
Array of db connections with string subscription John Microsoft VB .NET 7 8th Jan 2008 11:52 AM
Connections String Questions Mike TI Microsoft ADO .NET 3 3rd Nov 2007 10:21 AM
Where to store connections string Simon Harvey Microsoft ASP .NET 5 16th Feb 2004 06:09 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:47 AM.