Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Delete Cascade?
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Maintenance bases de données
Titre:
Divers
Thread ID:
00422255
Message ID:
00422339
Vues:
10
Automatic cascade deletes are NOT automatic in 7.0... you need to use triggers, that is correct. However, automatic cascade deletes are in SQL 2000.

BOb


>I am being told by my local DBA that automatic cascading deletes are possible in MSSQL7, that you must write nested triggers to conduct cascade deletions.
>
>Example:
>
>article, exam and result tables.
>
>- The article_id is the primary key of table article, and the foreign key of the table exam.
>- The exam_id is the primary key of table exam and the foreign key of the table result.
>
>I want to remove
>- 1 record, article_id = 5 in table: Article, and
>- 2 records with the same article_id = 5 and their exam id = 1 and 2, in the Exam table, and
>- 7 records with the Exam_id are 1 or 2 in the Result table.
>
>?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform