G
Guest
Hi,
I would like to implement optimistic concurrency where I retrieve the
timestamp of a record in a table with a stored procedure and save the
timestamp value into a vb.net variable. This represents the original
timestamp for the record. When a user updates the record, I would like to
pass the original timestamp to a stored procedure that performs the update to
ensure the record has not been changed by another user. The problem is, how
do I store the original timestamp value from SQL Server 2000 in vb.net? I
have tried:
Dim OrigTstamp() as Byte
I can assign an incoming timestamp to a byte array but I'm not certain if
anything is there. I then have great difficulty passing the OrigTstamp() to
the update stored procedure.
I would like to implement optimistic concurrency where I retrieve the
timestamp of a record in a table with a stored procedure and save the
timestamp value into a vb.net variable. This represents the original
timestamp for the record. When a user updates the record, I would like to
pass the original timestamp to a stored procedure that performs the update to
ensure the record has not been changed by another user. The problem is, how
do I store the original timestamp value from SQL Server 2000 in vb.net? I
have tried:
Dim OrigTstamp() as Byte
I can assign an incoming timestamp to a byte array but I'm not certain if
anything is there. I then have great difficulty passing the OrigTstamp() to
the update stored procedure.