Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Datenbanken (https://www.delphipraxis.net/15-datenbanken/)
-   -   fehler beim erstellen eines unique constraint (https://www.delphipraxis.net/162125-fehler-beim-erstellen-eines-unique-constraint.html)

khh 8. Aug 2011 08:38

Datenbank: firebird • Version: 2.1 • Zugriff über: ibexpert

fehler beim erstellen eines unique constraint
 
Hallo zusammen,
ich möchte einen unique constraint auf eine tabellenspalte setzen.
Dabei bekomme ich folgende Fehlermeldung :

Invalid insert or update value(s): object columns are
constrained - no 2 table rows can have duplicate column values.
attempt to store duplicate value (visible to active transactions) in unique index "UNQ1_ARTIKELPREISE".

die Überprüfung mittels sql-statement:

SELECT artikel_id
FROM artikelpreise
GROUP BY artikel_id
having count(artikel_id) > 1;

ergibt aber keine doppelten Sätze :-(

was mach ich falsch ?

Gruss KHH

DeddyH 8. Aug 2011 08:42

AW: fehler beim erstellen eines unique constraint
 
Sind denn alle Transaktionen commited? Starte doch IBExpert neu und versuch es dann noch einmal.

khh 8. Aug 2011 08:45

AW: fehler beim erstellen eines unique constraint
 
ich danke dir, nach dem Neustart funktionierts :wall:

DeddyH 8. Aug 2011 08:47

AW: fehler beim erstellen eines unique constraint
 
So etwas ist mir auch schon mehr als einmal passiert :zwinker:

khh 8. Aug 2011 08:52

AW: fehler beim erstellen eines unique constraint
 
dann bin ich ja beruhigt ;-)


Alle Zeitangaben in WEZ +1. Es ist jetzt 09:15 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz