Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

ASP VBScript command object lockPessimistic

Posted on 2004-09-21
5
Medium Priority
?
259 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 800 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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

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…
Code that checks the QuickBooks schema table for non-updateable fields and then disables those controls on a form so users don't try to update them.
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…

730 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