清问我在用BDE查询数据的时候,总是提示“invalid  BLOB  handle  in  record  buffer”,  请问是什么原因?在纪录很少的情况下没有问题,我连接的是sql  server数据库,用同样的方法在连接access数据库的时候没有问题,请问什么原因?  谢谢!

解决方案 »

  1.   

    參考底下這個問答
    Q: Why am I getting the error 'Invalid BLOB Handle in record Buffer' when I attempt to modify a record containing a BLOB?A: This error can occur for two different reasons.Case 1 - BDE API Application 
    This error is caused by not setting up the record
    correctly. Make certain to call DbiInitRecord on the
    record buffer before reading the record from the table.CASE 2 - Any BDE Application
    This error occurs when scrolling through more than 64
    blobs in the results of a dead query. The solution is to
    either make the results of the query a live result set, 
    or somehow limitscrolling blobs. (Such as having your 
    SELECT statement select fewer records.)NOTE:A future release of the BDE is planned to be able to
    be configured to get past the present hard coded limit.
     
    另外參考 http://www.delphi32.com/magazine/articles/6/bde_ora.asp 這
    有問 BLOBS TO CACHE 這段的說明。
     
    最後, 除了錯誤訊息外
    說明一下您是在什麼情況下發生的
    也是解決問題的重要參考。
      

  2.   

    把你的错误再google上面搜索一下吧,能找到不少答案的。