Autor Beitrag
Karstadt
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 174

Windows 2000 / XP
Delphi 7 Pro
BeitragVerfasst: Mi 07.12.05 14:02 
Hallo. Mir ist aufgefallen, wenn ich in eine Tabell kein Fel mit Primärschlüssel haben kommt beim editieren der Datensatz kann nicht gespert werden, weil der von einen anderen Benutzere genändert wurde.


das passiert NUR wenn die Tabelle kein Primärschlüssel hat. Ist das normal? kann man das irgendwie umgehen?
noidic
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 851

Win 2000 Win XP Vista
D7 Ent, SharpDevelop 2.2
BeitragVerfasst: Mi 07.12.05 14:31 
Gut möglich, da ohne Primärschlüssel der Datensatz nicht eindeutig identifiziert werden kann.

Lösung: Primärschlüssel hinzufügen ( sollte eh jede Tabelle haben.

_________________
Bravery calls my name in the sound of the wind in the night...
Karstadt Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 174

Windows 2000 / XP
Delphi 7 Pro
BeitragVerfasst: Mi 07.12.05 14:59 
ich bin villeicht zu blöd, aber wenn ich ein DS anlege und ein Wert für Primäre schlüssel vergebe dann speicher ich diesen DS ab. wenn ich aber diesen DS zum ändern aufrufe und den Wert von Primärschlüsel ändere, kommt es zu dieser Fehlermeldung. ist das normal?
noidic
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 851

Win 2000 Win XP Vista
D7 Ent, SharpDevelop 2.2
BeitragVerfasst: Mi 07.12.05 16:51 
Die Werte des PK-Feldes zu ändern sollte man nach Möglichkeit unterlassen, da es dann genau zu solchen Effekten führen kann.

_________________
Bravery calls my name in the sound of the wind in the night...