Results 1 to 2 of 2

Thread: clear me please!

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Mar 2005
    Posts
    2,941

    clear me please!

    With a big amount of recorset data warth is the best in order of performance, with Acces data base?

    Set RS = New ADODB.Recordset
    RS.CursorType = adOpenKeyset
    RS.LockType = adLockOptimistic

    or

    Set RS1 = New ADODB.Recordset
    RS1.CursorType = adOpenKeyset
    RS1.LockType = adLockReadOnly


    my conn

    With CONN
    .ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\MF\DATABASE\BAN.mdb;Persist Security Info=False"
    .CommandTimeout = 0
    .CursorLocation = adUseClient
    .Open
    End With


    in effect i need Readonly or Optimistic????

  2. #2
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: clear me please!

    If you just want to iterate through the records then you can use a firehose cursor, opened ForwardOnly and locked ReadOnly, that should be the fastest.
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width