Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Cursor Conflict in new_post.asp
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Cursor Conflict in new_post.asp

 Post Reply Post Reply
Author
jpwalters View Drop Down
Newbie
Newbie
Avatar

Joined: 05 February 2006
Location: United States
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpwalters Quote  Post ReplyReply Direct Link To This Post Topic: Cursor Conflict in new_post.asp
    Posted: 03 January 2007 at 8:16pm
Hi Borg!
 
 -2147217885 "Cursor Operation Conflict" kept occuring on save_new_post_data in new_post.asp.  No one could post new messages.
 
I'm not quite sure why this error started popping up, but I my initial guess was that "no count" was unchecked in the SQL Server Configuration (Connections).  This was not the case.  It was checked as being on, so my search continued....
 
Based on some knowledgebase articles, it seems like the server might be using a server-side cursor instead of a client side cursor, yikes!
 
So after some testing I added specific code to set the cursor type to client.  (See Below) 
 
Ultimately I added to new_post.asp as an experiment:
 
With rsCommon
  .CursorLocation = 3
  'Set the cursor type property of the record set to Dynamic so we can navigate through the record set
  .CursorType = 2
 
...
...
 
It fixed the problem!
 
Then I looked at setting this globally in the database_connection.asp page, which also seems to work:
 
 adoCon.connectionstring = strCon
 adoCon.CursorLocation = 3
 
Any thoughts on what may have happened?
 
Thanks,
Jason Walters
 
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.