Triggers u MSSQL
12.03.2007. u 12:21 · pre 238 meseci
#1
Koristio sam Access database, sa ON DELETE, i ON UPDATE actions postavlene Cascade.
U accessu sam imao definirani indekse za sva vklucena polja.
Sad, koristim SQL server 2005 (management studio). Definisao sam iste indekse kao kad accessu, no pojavla se ova poruka:
Introducing FOREIGN KEY constraint 'FK_PosSub_Rec' on table 'PosSub' may cause cycles or multiple cascade paths. Specify ON DELETE NO ACTION or ON UPDATE NO ACTION, or modify other FOREIGN KEY constraints.
U accessu nije problem koristite Cascade Update kod multiple cascade paths, ali u MSSQL je.
procitao sam da trebam koristiti triggers umesto constrains. ali ne znam kako
U accessu sam imao definirani indekse za sva vklucena polja.
Sad, koristim SQL server 2005 (management studio). Definisao sam iste indekse kao kad accessu, no pojavla se ova poruka:
Introducing FOREIGN KEY constraint 'FK_PosSub_Rec' on table 'PosSub' may cause cycles or multiple cascade paths. Specify ON DELETE NO ACTION or ON UPDATE NO ACTION, or modify other FOREIGN KEY constraints.
U accessu nije problem koristite Cascade Update kod multiple cascade paths, ali u MSSQL je.
procitao sam da trebam koristiti triggers umesto constrains. ali ne znam kako
Potpis
Anyone who puts a small gloss on a fundamental technology, calls it proprietary, and then tries to keep others from building on it, is a thief. (Tim O'Reilly)
