Delphi32.com - Home!
| Home/News | Downloads | Forums | D32 Magazine | Resources | Info and Facts |  
 
 Non-Blob column in table required to perform operation with MSSQL


How come I'm getting the error "Non Blob column in table required to perform operation" when posting to my MSSQL database?   

    There are two conditions where this error occurs:

    1. You have an identity field and a field that is NOT NULL (required) and you post a record.
    2. With BDE versions prior 5. 0, all you can do is ignore the error and continue. The problem is resolved simply by getting BDE 5. 0.

    3. You have an identity field which is the primary key and a key field, you have a text field, and you post a record.
    4. With BDE versions prior 5. 0, all you can do is ignore the error and continue. If you have BDE 5. 0 and Delphi, you can turn on the AutoRefresh property of your DataSet to resolve the problem.

      If you have BDE 5. 0 and development system other than Delphi 5, you can call DbiSetProp and set curAUTOREFETCH (which is equal to 0x000500 7) to true.

      • C++ Builder Example:
      • #include "bde.hpp" #define curAUTOREFETCH 0x000500 7; Table ->Open(); DbiSetProp(Table ->Handle, curAUTOREFETCH, TRUE);

      • Delphi version other than 5 example:
      • uses bde; const    curAUTOREFETCH = $000500 7; ... Table .Open; DbiSetProp(hDbiObj(Table .Handle), curAUTOREFETCH, Longint(TRUE))

    / 6/99

     



  << Previous Faq     Complete List     Next Faq >>  



 
 Hits/month  2,500,000+ 
 Downloads
 (Since May 2000)
 7,393,709 
 Total Files  6,023 
 Forum msgs  7,670 
 Articles/FAQs  70+/900+ 
Kylix
Tips n Tricks
FAQs
Knowledge Base
Bug Listings
Articles
Books
Newsgroups
Links
Submissions
Testimonials
Advertising
Contact Us
About Us
Search Amazon:
Top Selling Software at Amazon

| Home/News | Downloads | Forums | Resources | Info and Facts | Testimonials |
  Site Search:
 


Comments/Problems: Webmaster@delphi32.com
Copyright © 1998-2006, Delphi32.com. All rights reserved.
Terms of Use