The information in this article applies to:
SYMPTOMS
When you use data access objects (DAO) to attach a SQL Server 6.5 table, an
attempt to delete or update records that contain one or more NULL values
results in the following error:
CAUSE
The SQL Server 6.5 ODBC driver always sets the ANSI_NULLS option to ON on
every connection that is to be ANSI compliant. This means that a search
condition like 'WHERE <colname> = NULL' is always evaluated to FALSE. In
accordance with the ANSI specification, the correct syntax when searching
for NULLs is 'WHERE <colname> IS NULL'.
Because the above search condition is always evaluated to FALSE, no rows will be affected by the delete and Access/Visual Basic will display the message, "Data has changed. Operation stopped." WORKAROUND
Additional query words: MFC DAO Access Jet 3197
Keywords : kbnetwork SSrvGen SSrvVisB |
Last Reviewed: March 26, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |