BUG: sp_helpindex Does Not Identify UNIQUE KEY Correctly (150899)



The information in this article applies to:

  • Microsoft SQL Server 6.0
  • Microsoft SQL Server 6.5

This article was previously published under Q150899
BUG#: 15010 (6.00, 6.50)

SYMPTOMS

Using sp_helpindex on a table with a UNIQUE KEY identifies the index only as a UNIQUE index, not as a UNIQUE KEY.

CAUSE

The logic in the stored procedure is incorrect for identifying UNIQUE KEYs. It correctly checks for the existence of the UNIQUE KEY status bit, but then presents results based on a different status bit.

STATUS

Microsoft has confirmed this to be a problem in Microsoft SQL Server version 6.0 and 6.5. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

Modification Type:MajorLast Reviewed:10/16/2003
Keywords:kbBug kbProgramming KB150899