BUG: SET COLLATE & Queries - Additional Problem Scenarios (181085)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
- Microsoft Visual FoxPro for Windows 3.0b
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 5.0a
- Microsoft Visual FoxPro for Macintosh 3.0b
This article was previously published under Q181085 SYMPTOMS
Queries in Visual FoxPro that compare integer fields in the WHERE clause of
a SQL Select statement between two or more tables may not return all
matching records. This problem occurs when the collation sequence is set to
anything but Machine.
This article provides some additional known scenarios where this happens in
addition to the scenarios described in the articles listed in the
REFERENCES section.
RESOLUTION
Use one of the following three workarounds to resolve this problem:
- Create index tags on the integer fields before running the query.
- Set the collation sequence to Machine before running the query. To do
this issue the SET COLLATE TO "Machine" command in the program before
running the query.
- Use a numeric field without any decimal places instead of an integer
field.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article.
REFERENCES
For additional information, please see the following articles in the
Microsoft Knowledge Base:
176884 PRB: Problems with SET COLLATE and Queries with Integer Fields
164869 SET COLLATE TO "GENERAL" May Affect Search Results
Modification Type: | Major | Last Reviewed: | 5/12/2003 |
---|
Keywords: | kbbug kbpending kbvfp600fix KB181085 |
---|
|