Forum Moderators: open
objRS.Open strSQL, objConn
can i include the parameters adLockOptimistic and adOpenKeyset?
what would the syntax need to be?
Could someone please explain if I need to use cursors and locks if i am reading and writing to a database in SQL.
I am fairly new to ASP thanks.
objRS.open , objConn, adOpenKeyset
objRS.CursorLocation = adLockOptimistic
Most of the time you wont need to specify any cursors or lock at all (you get a foward cursor by default), just use:
// best performance for insert/update
objConn.Execute strSQL ,,&H00000080
// select - creates rs implicitly
set objRS=objConn.Execute strSQL