Home | Advertising Info154 USERS CURRENTLY ONLINE   
   Site Search Contact Us Sunday, June 24, 2018  

User Management Application with web based screens that allow you to manage users.
Banner Rotation system. Advertisers can monitor online statistical reports via their web browsers.
ASP Photo Gallery
Upload an unlimited amount of albums. Set up categories.Image resizing thumbnail creation.
Classifieds system. Set up categories. Users can register themselves. Supports picture uploads.


We didn't realize
the site was so popular.

Other Stuff

Active Server Pages ASP ASP.NET .aspx .ascx Web HTML Developer Internet Microsoft Web Services Visual Studio .NET CJWSoft ASPProtect ASPBanner ASPClassifieds

(Advanced)  (Components)  (Database)  (General)  (Vbscript)


Subject: Re: recordset locking?
From: kal
Date: 10/18/1999 1:48:45 PM


May be this will help.
Set rs = Server.CreateObject("ADODB.RecordSet")
Set rs1 = Server.CreateObject("ADODB.RecordSet")
rs.ActiveConnection = objconn
rs.CursorType = adOpenKeyset
rs.LockType = adLockOptimistic
sql="SELECT key FROM getkey WHERE table = hello"
rs.Open sql
UserID = rs("key")
NewKey = CInt(rs("key")) + 1
rs1.ActiveConnection = objconn
rs1.CursorType = adOpenKeyset
rs1.LockType = adLockOptimistic
SQL = "UPDATE getkey SET key = " & NewKey & " WHERE table=hello"
rs1.Open sql

for this you have to include the adovbs.inc file. Search for this file in your hard drive. I think this file gets added when you install vb.

Here the locktype has 4 values. They are:

Default. Read-only—you cannot alter the data.

Pessimistic locking, record by record—the provider does what is necessary to ensure successful editing of the records, usually by locking records at the data source immediately upon editing.

Optimistic locking, record by record—the provider uses optimistic locking, locking records only when you call the Update method.

Optimistic batch updates—required for batch update mode as opposed to immediate update mode.


Previous Message


   Active Server Pages Rule The World
Contact Us  
All artwork, design & content contained in this site are Copyright 1998 - 2018 PowerASP.com and Christopher J. Williams
Banner ads ,other site logos, etc are copyright of their respective companies.
STATS Unless otherwise noted - All Rights Reserved.

Active Server Pages asp search engine active server page asp application components tutorial CJWSoft ASPProtect ASPBanner ASPClassifieds www.aspclassifieds.com, www.powerasp.com,www.cjwsoft.com,www.aspphotogallery.com,www.codewanker.com,www.aspprotect.com,www.aspbanner.com