PRB: Connectivity Kit Produces Error 252 with No Error MessageLast reviewed: April 30, 1996Article ID: Q116272 |
The information in this article applies to:
SYMPTOMSWhen you are executing a DBExec() function with a SELECT statement that returns approximately 40 or more fields, an error of 252 is returned from the DBError() function with a null error message.
CAUSEThe error occurs because the Connectivity Kit is generating an Xbase command to create a cursor or table in FoxPro with a large number of fields, and the command that is generated is exceeding the maximum length of a compiled line in FoxPro (1024 bytes). The number of fields required to cause the error varies based on the length of the column names. In general, however, the error is likely to occur when 20 or more fields are included in the SQL Select command.
RESOLUTIONThere are several ways to work around the problem:
|
Additional reference words: FoxDos FoxWin 2.50 2.50a 2.50b 2.60 CK 252
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |