Solved

ASP VBScript command object lockPessimistic

Posted on 2004-09-21
5
251 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

751 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