Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

ACC2000: Access Displays #DELETED When You Insert Data with the Same Value into a Non-Unique Key Column of a Remote Table


View products that this article applies to.

This article was previously published under Q257487
Advanced: Requires expert coding, interoperability, and multiuser skills.

This article applies only to a Microsoft Access database (.mdb).

For a Microsoft Access 2002 version of this article, see 291546 (http://support.microsoft.com/kb/291546/EN-US/ ) .

↑ Back to the top


Symptoms

When you try to add records to a linked SQL Server table, Access displays #DELETED when you commit the record. However, no error is returned, and the data is correctly saved to the table.

↑ Back to the top


Cause

When you try to add records to a linked SQL Server table that includes a primary key that has a data type of UniqueIdentifier, #DELETED may be displayed when you commit the record.

↑ Back to the top


Resolution

Obtain the latest Microsoft Jet 4.0 service pack that contains an updated version of the Microsoft Jet 4.0 database engine.

For additional information about how to obtain the latest version of the Jet 4.0 database engine, click the following article number to view the article in the Microsoft Knowledge Base:
239114� How To: Obtain the Latest Service Pack for the Microsoft Jet 4.0 Database Engine

↑ Back to the top


Status

This is a known issue in Microsoft Jet version 4.0.2927.4 and earlier.

↑ Back to the top


More information

Steps to Reproduce the Behavior

  1. Create a table in the Pubs sample database of Microsoft SQL Server 7.0 by running the following script in the SQL Server Query Analyzer:
    Use Pubs
    
    CREATE TABLE Table1 
    (col1 uniqueidentifier DEFAULT NewID() 
    PRIMARY KEY NOT NULL, 
    col2 int)
    
    go
    					
  2. Create a new Access database, and then add a link to the SQL Server table that you created in Step 1.
  3. Open the linked table in Datasheet view.
  4. Add a record, and then in col2, type 123.
  5. Add a second record, and then in col2, type the same value, 123.
  6. On the Records menu, click Save Record.
Note that Access displays #DELETED in both fields of the second record.

↑ Back to the top


Keywords: KB257487, kbfix, kbbug

↑ Back to the top

Article Info
Article ID : 257487
Revision : 3
Created on : 6/24/2004
Published on : 6/24/2004
Exists online : False
Views : 307