Results 1 to 4 of 4

Thread: locktype error! help

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2002
    Location
    Seattle, WA USA
    Posts
    216

    locktype error! help

    I have the following line in my code but I keep getting the error: "Recordset does not support updating. This could be a limitation of the provider or of the current locktype"

    RS.Open SQLstatement, SQLCON, adLockOptimistic

    Does anyone know if that line is correct or not? I'm using MS SQL Server 2000
    VB6, VB.NET, C#, SQL, XML, ADO.NET, ASP.NET, HTML.
    MCP & A+ Certified. Looking for a job in the Seattle, WA area.

  2. #2
    Frenzied Member John McKernan's Avatar
    Join Date
    Jan 2002
    Location
    SE PA
    Posts
    1,295
    Try
    VB Code:
    1. RS.Open SQLstatement, SQLCON, adOpenKeyset, adLockOptimistic

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Mar 2002
    Location
    Seattle, WA USA
    Posts
    216
    Thanks. Works perfect. What is OpenKeyset anyway?
    VB6, VB.NET, C#, SQL, XML, ADO.NET, ASP.NET, HTML.
    MCP & A+ Certified. Looking for a job in the Seattle, WA area.

  4. #4
    Frenzied Member John McKernan's Avatar
    Join Date
    Jan 2002
    Location
    SE PA
    Posts
    1,295
    Sets the cursor type, other options are: asOpenDynamic, adOpenForwardOnly, adOpenStatic

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