PRB: SQL Server Table Bit Field Requires Value of 0 or 1
Article ID: 156508
Article Last Modified on 12/3/2003
APPLIES TO
- Microsoft Visual FoxPro 3.0 Standard Edition
- Microsoft Visual FoxPro 3.0b Standard Edition
- Microsoft Visual FoxPro 5.0 Standard Edition
- Microsoft Visual FoxPro 6.0 Professional Edition
- Microsoft Data Access Components 2.5
This article was previously published under Q156508
SYMPTOMS
You may receive the following error running a Remote View after setting a
filter condition for a bit field from a SQL Server table:
Connectivity error: [Microsoft][ODBC SQL Server Driver][SQL Server]
Line 1: Incorrect syntax near '.'.
[Microsoft][ODBC SQL Server Driver][SQL Server]Invalid column name
'<T or F>'.
CAUSE
You have used .T., .F., T, or F in the Remote View Designer as a Filter
Example for a field of bit data type in a SQL Server table. The SQL Server
ODBC driver requires a 0 or 1 for Filter Example for fields of bit data
type.
RESOLUTION
Use a 0 or 1 rather than .T., .F., T, or F.
STATUS
This behavior is by design.
Additional query words: kbdse VFoxWin
Keywords: kbprb KB156508