PRB: "Syntax Error in FROM Clause" Using Text ODBC DriverLast reviewed: February 3, 1998Article ID: Q177947 |
The information in this article applies to:
SYMPTOMSWhen you use the AppWizard to create a CRecordset class using the ODBC Text Driver, your project will compile. However, when you try to open the recordset, you will get the following error message:
Syntax error in FROM clause. CAUSEThe AppWizard incorrectly parses the table as [Table].[txt], instead of as [Table#txt].
RESOLUTIONIn the CTextDriverSet.cpp implementation file, find the CTextDriverSet::GetDefaultSQL() function and change the return value from
return _T("[Table].[txt]");to the following:
return _T("[Table#txt]");Here is the function before the changes:
CString CTextDriverSet::GetDefaultSQL() { return _T("[Table].[txt]"); }Here is the function after the changes:
CString CTextDriverSet::GetDefaultSQL() { return _T("[Table#txt]"); } STATUSMicrosoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATION
Steps to Reproduce Behavior
In Notepad
Start Visual C++ 5.0
|
Additional query words: Bomb Error
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |