B
Bill
Here's the basic problem pertaining to the question to
come.
Using Access Database with the following tables
Customers
-CustomerID (primary key)
-Customer name,address,phone
Orders
-OrderID (primary key)
-CustomerID (referential key)
-Order Data
OrderDetails
-OrderDetailID (Primary key)
-OrderID (referential key)
-Order Details
Ok, on my data windows form for order entry the first
thing that is required is the phone number. Upon getting
this info the Customer Table is searched for an existing
matching record. If found the form is updated with
Customer Info.
My question is in an multiuser enviorment with ADO.NET
how do I handle the concurrency problems within this
business logic.
If using ADO.NET disconnected architecture when User "A"
starts to enter orders a snapshot is created of the
existing data. User "A" enters a new (or several new)
order which creates a new Customer Record. At the same
time User "B" is doing the same thing.
My question is since a new CustomerID is created with
each new record added to Customer Table which is tied to
the Order Table when the database is updated how is this
problem handled?
Any help would be appreciated.
Thanks
come.
Using Access Database with the following tables
Customers
-CustomerID (primary key)
-Customer name,address,phone
Orders
-OrderID (primary key)
-CustomerID (referential key)
-Order Data
OrderDetails
-OrderDetailID (Primary key)
-OrderID (referential key)
-Order Details
Ok, on my data windows form for order entry the first
thing that is required is the phone number. Upon getting
this info the Customer Table is searched for an existing
matching record. If found the form is updated with
Customer Info.
My question is in an multiuser enviorment with ADO.NET
how do I handle the concurrency problems within this
business logic.
If using ADO.NET disconnected architecture when User "A"
starts to enter orders a snapshot is created of the
existing data. User "A" enters a new (or several new)
order which creates a new Customer Record. At the same
time User "B" is doing the same thing.
My question is since a new CustomerID is created with
each new record added to Customer Table which is tied to
the Order Table when the database is updated how is this
problem handled?
Any help would be appreciated.
Thanks