Autor Beitrag
alzaimar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2889
Erhaltene Danke: 13

W2000, XP
D6E, BDS2006A, DevExpress
BeitragVerfasst: Do 19.05.05 20:16 
Hallo,

Einfaches Szenario:
1x MSSQL, eine Tabelle mit einer Primary Key (ID) und einem Feld 'Foo' (Varchar, auch egal) sowie 1x ADOQuery.
Wenn ich nun in der ADOQuery etwas editiere und dann poste, sehe ich im Profiler sowas wie:
ausblenden Quelltext
1:
UPDATE Table Set Foo='Bar' WHERE Foo='OldValue' and ID=12345					

Schön, ich will aber dieses '...Foo='OldValue' and ...' in der WHERE Klausel nicht. Also, es soll nur 'WHERE ID=12345' da stehen.
Weiss jemand, wie ich das anstellen soll?