Solved

Recordset Cursor Operation Conflict

Posted on 2002-04-08
4
418 Views
Last Modified: 2008-02-01
Hi

I've got a site where I have quite a few DB access commands.  Most commonly they are in the form:

objRecordset.Open strSQL, DB_CONNECTIONSTRING, adOpenKeyset, adLockPessimistic, adCmdText

I've been occasionally getting 'Recordset Cursor Operation Conflict asp errors'   Is this due to the adLockPessimistic parameter and the number of users in the system increasing?

Any suggustions?
0
Comment
Question by:bendecko
  • 2
  • 2
4 Comments
 
LVL 11

Expert Comment

by:thunderchicken
ID: 6926293
You might try

Application.Lock

and

Application.Unlock
 before and after SQL Calls
0
 
LVL 1

Author Comment

by:bendecko
ID: 6926886
Recordset Cursor Operation Conflict errors could be due to pessmistic locking?

What does the application lock actually do?  What happens if two processes try to lock a table at the same time - wouldn't i get the same problem?

Bendecko
0
 
LVL 11

Accepted Solution

by:
thunderchicken earned 50 total points
ID: 6926908
Your right, i was thinking of something totally different.  I thought it had to do with the entire process itself, but it only has to do with application variables...

Have you tried doing something like...

...
cn.open DB_CONNECTIONSTRING
set rs = cn.execute(strSQL)
...
0
 
LVL 1

Author Comment

by:bendecko
ID: 7080237
Having a bit of a clean up of <unlocked questions>

This would almost certainly work I now know to use the connection object for INSERTS and UPDATES and leave the recordset for SELECTS

thanks

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Classic ASP - SQL Server connection problem Part 2! 3 52
Update table value with join syntax 2 60
Error viewing ASP page 12 148
CDO.Message not able to send attachement 5 12
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Edureka is one of the fastest growing and most effective online learning sites.  We are here to help you succeed.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

911 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now