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: #Deleted in Linked Table Containing UniqueIdentifier


View products that this article applies to.

This article was previously published under Q253837
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 293657 (http://support.microsoft.com/kb/293657/ ) .
For a Microsoft Access 2002 version of this article, see 293657 (http://support.microsoft.com/kb/293657/ ) .

↑ Back to the top


Symptoms

When you open a linked SQL Server table that has a field of type UniqueIdentifier, you see #Deleted in the fields of all records.

↑ Back to the top


Cause

You have installed Microsoft Jet 4.0, Service Pack 3, and/or Microsoft Office 2000 SR-1.

↑ Back to the top


Resolution

Obtain the latest Microsoft Jet 4.0 service pack.

For additional information about how to obtain the latest Jet 4.0 service pack, 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

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

↑ Back to the top


More information

Steps to Reproduce Behavior

  1. Using Microsoft SQL Server 7.0 Enterprise Manager or Access 2000, open the sample project NorthwindCS.adp (log in as the database owner).
  2. Create and save the following stored procedure with the default name of StoredProcedure1:
    Create Procedure "StoredProcedure1"
    As
    if exists (select * from sysobjects where id = object_id(N'[dbo].[GUID_Test]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
    drop table [dbo].[GUID_Test]
    
    CREATE TABLE [dbo].[GUID_Test] (
       	[ColA]  uniqueidentifier ROWGUIDCOL  NOT NULL ,
       	[ColB] [varchar] (50) NULL )
                         ON [PRIMARY]
       ALTER TABLE [dbo].[GUID_Test] WITH NOCHECK 
            ADD CONSTRAINT [PK_GUID_Test] PRIMARY KEY  NONCLUSTERED  ([ColA])
                         ON [PRIMARY]  
    
       INSERT INTO GUID_TEST VALUES ('{DBAB6FFE-82B2-4D65-819E-32DD4D904C51}',
          'TESTRECORD1')
       INSERT INTO GUID_TEST VALUES ('{DBAB6FFE-82B2-4D65-819E-32DD4D904C52}',
          'TESTRECORD2')
       INSERT INTO GUID_TEST VALUES ('{DBAB6FFE-82B2-4D65-819E-32DD4D904C53}',
          'TESTRECORD3') 
    
    return
    					
  3. Double-click the StoredProcedure1 stored procedure. This creates a table named GUID_Test in the database.
  4. Create a new Access database called MyTest.mdb.
  5. On the File menu, point to Get External Data, and then click Link Tables.
  6. In the Link dialog box, change Files of Type to ODBC Databases.
  7. In the Select Data Source dialog box, open or create a data source name (DSN) that points to NorthwindCS.
  8. Create a linked table to the GUID_Test table that you created earlier in SQL Server. If you are asked for an index column, select ColA.
  9. Open the dbo_GUID_Test table. Note that all the fields contain #Deleted.

↑ Back to the top


Keywords: KB253837, kbfix, kbbug

↑ Back to the top

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