Unique Index Error when creating non-unique index - SQL Server -


I'm trying and a non-unique index in a table table in SQL Server 2005. I'm getting the following error when I try to make it. Message 1505, Level 16, State 1, Line 1 Unique Index Statement expired because the object name 'dbo.oe_pick_ticket' and a duplicate key for the index was found Name 'idx_pick_ticket_popup_wmms' Duplicate key value (1093066, N, N, N, FBF, 100001, 1074359, 1118930).

My statement is as follows:

  make oe_pick_ticket (invoice_fag, delete_fag, direct_shippan, assistant, oe_pick_ticket_type_cd, company_id, location_id, order_no) on countx indices idx_pick_ticket_popup_wmms / I have tried to rebuild the cluster / unique / primary key index and did not change anything. Does anyone know why I got this error and how to solve it? 

It turns out that I was able to find myself with myself, I started a DBCC checklist on the table And there was an inconsistency after that I went back to Dubai with this option and fixed the primary key discrepancy.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -