You receive a "Syntax Error" error message when you create an OracleDataAdapter control in a Visual Studio .NET 2003 Professional application (892464)
The information in this article applies to:
- Microsoft Visual Studio .NET (2003), Professional Edition
SYMPTOMSWhen you create an OracleDataAdapter control in a Microsoft Visual
Studio .NET 2003 Professional application, you may receive one of the following
error messages:
Syntax Error: Found 'FROM' inside an
expression. Syntax Error: Expecting identifier or
quoted identifier. CAUSEThis behavior occurs when one of the following conditions is
true:
- The select SQL query statement has more than one FROM
clause.
- The select SQL query statement contains a select subquery.
- The MissingSchemaAction property of the OracleDataAdapter control is set to
MissingSchemaAction.AddWithKey before you call the Fill method.
WORKAROUNDTo work around this behavior, use both of the following methods:
- Manually create the code for the select command. Do not use
the Data Adapter Wizard to create the data adapter.
- Do not set the MissingSchemaAction property to MissingSchemaAction.AddWithKey before the application calls the Fill method on the dataset.
Modification Type: | Major | Last Reviewed: | 1/25/2005 |
---|
Keywords: | kbprb KB892464 kbAudDeveloper |
---|
|