CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2001
    Posts
    19

    Error on deleting

    Hi,
    I open the database with standart DataEnvironment with lock type optimistic.

    In my program I want to delete on records with:

    DataEnvironment1.rsCommand1.Delete adAffectCurrent

    and got these error:

    Insufficient base table information for updating or refreshing

    What setting is wrong !!!
    By the way I use an oracle db with odbc.

    regards

    Stephan


  2. #2
    Join Date
    Aug 2000
    Location
    KY
    Posts
    766

    Re: Error on deleting

    It many cases the Oracle OLEDB driver does not provide sufficient metadata with the recordset to allow a delete. Try including the primary key of the table in your select query, this will ususally fix the problem, even though you may not need it. Also try setting your CursorLocation to the server.


    Yahoo Messenger ID dfWade10900

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

Featured