"Runtime error 3251" "Current Recordset does not support updating. This may be a limitation of the provider or of the selected locktype."

Posted on 2005-04-11
Last Modified: 2008-01-09
My client called today to report the following run time error:

"Runtime error 3251" "Current Recordset does not support updating. This may be a limitation of the provider or of the selected locktype."

This error occurs in several different VB6 programs that have been working perfectly for several months.  The difference is that the client changed the SQL Server 2000 recovery model for the database from "Simple" to "Full" recovery so that transactions will be logged.

Nothing was changed in the VB code.

The programs all open SQL Server 2000 ADODB recordsets with adOpenDynamic and adLockOptimistic, so updating is supported.

Anyone have any idea why changing the SQL Server receovery model from "simple" to "full" might have triggered these errors?
Question by:portdata
    LVL 14

    Expert Comment

    by:Shiju Sasidharan
    hi try these settings
    what is the cursorlocation and type u r using ?
          Dim objRec As New ADODB.Recordset

          objRec.CursorLocation = adUseClient
          objRec.CursorType = adOpenDynamic
          objRec.LockType = adLockPessimistic

    hope this will help u


    LVL 14

    Expert Comment

    by:Shiju Sasidharan
    if this doesn't seem to work, can u post the connection string u r trying

    Author Comment


    Thanks for the suggestion.

    However, I am not interested in changing the code - it has been working perfectly for a year or more.

    The problem is that it stopped working when the SQL Server 2000 database recovery model was changed from "simple" (no transaction logging) to "full: (full transaction logging) on the database.

    What I need to know is "why" did this error start to appear after the change was made.

    Art Misita
    LVL 69

    Expert Comment

    by:Éric Moreau
    I have never seen that changing the recovery model had effects on application! There is surely something else that changed! Is the database is marked as read-only?

    Author Comment

    I solved the problem myself.

    It turns out that when the client imported the table that is triggering the error, they did not redefine the two indexes that wewre originally defined on that table.

    I defined the indexes and the problem disappeared.

    This is actually kind of strange since indexes are "optional" in SQL Server.

    I am requesting that this question be withdrawn as "self solved'.

    Accepted Solution

    Closed, 500 points refunded.
    Community Support Moderator @ Experts Exchange

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
    When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
    Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
    Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now