The information in this article applies to:
SYMPTOMSIf, in a CREATE SQL VIEW command, there are parentheses and a logical OR expression, once the view is added to the database (.dbc file), the parentheses will appear to be moved. CAUSEThe parser for the view will group the OR statements until it reaches another OR or the end of the statement. It has to do this in order to look correctly in the Selection Criteria of the View Designer. WORKAROUNDTo work around this problem, write the SQL statement without any parenthesis, or if the SQL statement is to complex, break up the statement with the UNION or UNION ALL clauses. STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available. MORE INFORMATIONSteps to Reproduce ProblemCreate a program with the following code, with the Tastrade.dbc database file open:
This will create a view called Test. If the Test view is modified and on
the Query menu, you click View SQL, you'll see that the generated SQL
statement looks like this:
Additional query words: kbvfp300 kbvfp500 kbvfp600
Keywords : kbVFp kbVFp300bbug kbVFp500abug kbVFp500bug buglist3.00 FxprgSql |
Last Reviewed: August 25, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |