Hi,
We develop multi user data access systems based on VB6, ADO(2.6), OLE DB provider for SQL Server and SQL Server 2000
Here is the situation.
A recordset holding a single record is opened client side and the connection to the database is tempClosed, no locks are held.
The operator then goes for a cup of tea.
On his return, he then decided to change the details of this piece of equipment.
Here is the question:
How is it possible to tell the DB system to perform the following.
We believe there is some hidden meta data associated with each record in ADO, like a LastUpdateDateTimeStamp, which can be compared with the one on the real record in the DB and will UPDATE or FAIL depending on this.
Is any of this automatically implemented with the LockOptimistic option in ADO?
Thanks,
Jim.
We develop multi user data access systems based on VB6, ADO(2.6), OLE DB provider for SQL Server and SQL Server 2000
Here is the situation.
A recordset holding a single record is opened client side and the connection to the database is tempClosed, no locks are held.
The operator then goes for a cup of tea.
On his return, he then decided to change the details of this piece of equipment.
Here is the question:
How is it possible to tell the DB system to perform the following.
Code:
If the Record has not changed since it was opened then
UPDATE THE RECORD CONTENTS
Else
THROW AN EXCEPTION
We believe there is some hidden meta data associated with each record in ADO, like a LastUpdateDateTimeStamp, which can be compared with the one on the real record in the DB and will UPDATE or FAIL depending on this.
Is any of this automatically implemented with the LockOptimistic option in ADO?
Thanks,
Jim.