UT1x: Upsizing Wizard Does Not Allow Nulls in Foreign Key (128877)
The information in this article applies to:
- Microsoft Access Upsizing Tools 1.0
This article was previously published under Q128877 SYMPTOMS
If after you have upsized Microsoft Access tables to Microsoft SQL Server,
you attempt to save a record in which you have entered a null in a foreign
key field, you may receive the following error messages
ODBC insert failed on attached table '<Childtablename>'
and then:
Cannot add or change record. Referential integrity rules require a
related record in table '<Parenttablename>'
CAUSE
The Upsizing Wizard creates an insert trigger when two tables with
referential integrity are upsized. Entering a null in a foreign key field
causes an error with this trigger. This error also occurs when you insert
a record using the Microsoft SQL Server tools, such as ISQL/w.
RESOLUTION
To work around this problem, you must change the insert trigger to allow
null values in the foreign key field. Please see the "Steps to Reproduce
Problem" section of this article for an example of this resolution.
NOTE: This resolution assumes that you are familiar with Transact-SQL, the
programming language used in Microsoft SQL Server. For more information
about Transact-SQL, please refer to the "Transact-SQL Reference" manual for
Microsoft SQL Server.
STATUS
Microsoft has confirmed this to be a problem in the Microsoft Access
Upsizing Tools version 1.0. We are researching this problem and will post
new information here in the Microsoft Knowledge Base as it becomes
available.
Modification Type: | Major | Last Reviewed: | 7/24/1999 |
---|
Keywords: | kbbug kberrmsg KB128877 |
---|
|