Print Page | Close Window

CursorType and LockType

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=368
Printed Date: 29 March 2026 at 8:03am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: CursorType and LockType
Posted By: Mikael
Subject: CursorType and LockType
Date Posted: 20 February 2003 at 5:37pm

Can somebody explain to me what this will code do:

rsNewPost.CursorType = 2
rsNewPost.LockType = 3

Does it lock a post in the database so it doesn't double-recording?




Replies:
Posted By: WebWiz-Bruce
Date Posted: 20 February 2003 at 5:42pm
The lock type of 3 will look the db while it is updated otherwise if someone else tries to update it at the same time or accesses it, it could corrupt the database.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: Mikael
Date Posted: 21 February 2003 at 1:59am
And the CursorType?


Posted By: WebWiz-Bruce
Date Posted: 21 February 2003 at 4:47am

I can't remeber offfhand, I think that could be a dynamic one for moving around the recordset.

The values there are the interger values, have a look on MSDN for the correct full names of these cursor and locktypes to see what they do.



-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: dolby71
Date Posted: 21 February 2003 at 6:23am
OK Thanks.
I wanted to know that too...



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net