Solved

ASP VBScript command object lockPessimistic

Posted on 2004-09-21
5
234 Views
Last Modified: 2012-06-21
I'm using a command object to pass 35 parameters to an Access database stored procedure, using the ".Execute" command. Does the command object not have a lockPessimistic property the way a recordset does?
0
Comment
Question by:tom_burkhardt
  • 3
  • 2
5 Comments
 
LVL 18

Expert Comment

by:Data-Man
ID: 12117093
no ADO does not have a lock pessimistic property....Mike
0
 

Author Comment

by:tom_burkhardt
ID: 12117267
thanks. I didn't think so. Any idea what happens if someone else makes a change at the same time? There must some default read type/lock type for the command object (I'm using an implicit connection, rather than going through a connect object).
0
 
LVL 18

Accepted Solution

by:
Data-Man earned 200 total points
ID: 12117342
I usually send over the timestamp field and compare that to the current timestamp to ensure that the record hasn't changed before doing the update.

Mike
0
 

Author Comment

by:tom_burkhardt
ID: 12117380
Thanks!!
0
 
LVL 18

Expert Comment

by:Data-Man
ID: 12117434
Use the return value to pass back a failure...0 if it worked.

Mike
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question