PRB: Error "OLE Object is Invalid or Corrupt" on Empty Gen Field (169154)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 5.0a
- Microsoft Visual FoxPro for Windows 6.0
This article was previously published under Q169154 SYMPTOMS
When upsizing FoxPro data to an SQL server, empty general field records may
cause an error when browsing the resulting SQL table.
CAUSE
This is caused by an empty general field being upsized as an hex 20 (which
is a space character). FoxPro expects to see binary data in the general
field rather than an ASCII character.
RESOLUTION
The problem can be avoided by setting the General field to accept NULL
values. This can be done in either of two methods when creating the table:
programmatically or visually.
To programmatically allow a NULL value, use the NULL keyword when creating
the field in the table.
* The following line of code creates a table called 'gendata'. The
* General field in the table, 'gfield' accepts NULL values.
CREATE TABLE gendata (gfield G NULL)
To set the field to accept NULL values using the visual interface, place a
check mark in the NULL column for the field, in the Table Designer dialog
box.
STATUS
Microsoft is researching this problem and will post new information here in
the Microsoft Knowledge Base as it becomes available.
Modification Type: | Major | Last Reviewed: | 12/11/1999 |
---|
Keywords: | kbcode kberrmsg kbprb KB169154 kbAudDeveloper |
---|
|