The information in this article applies to:
SYMPTOMS
An append query from a Microsoft Access 97, Access 95, or Access 2.0
database to a table in SQL Server 6.0 or SQL Server 6.5 may generate the
following message:
This message appears if both of the following conditions are true:
CAUSEJet handles the append query request in a different way for rows when all the columns contain NULL values. For an example, see the MORE INFORMATION section of this article. WORKAROUNDTo work around this problem, make sure that the rows from the source table being inserted into the destination table do not have all NULL values. You can do this by adding the criteria "IS NOT NULL" for any particular column in the append query. MORE INFORMATION
Suppose you have the following two tables:
When both col1 and col2 are null for a particular row, the SQL statement that goes into SQL Server would include all the columns in the destination table, thereby trying to insert NULL values into every column, as in the following:
This happens even though colA and colD are not specified in the append query. Because colA in TABLE_D has an IDENTITY property, SQL Server returns the following error message and the append query fails:
Additional query words: col
Keywords : kbinterop SSrvGen |
Last Reviewed: April 16, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |