Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Supress SQL Errors
Message
De
28/04/2001 11:08:55
 
 
À
26/04/2001 13:47:58
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Stored procedures, Triggers, UDFs
Divers
Thread ID:
00500132
Message ID:
00501237
Vues:
23
That's what I was afraid of. In this table, there are so many relations that it would be very difficult to check all of them. I'll just have to deal with it from my calling code.

>I don't believe that there is anyway to prevent SQL Server from raising the error. Your option is probably to test to see if the delete would cause a problem. This, of course, requires that you embed the relationships within your stored procedure:
>
>IF NOT EXIST(SELECT * FROM books WHERE au_id = @author)
>BEGIN
> DELETE FROM authors WHERE au_id = @author
>END
>
>-Mike
Thanks,
Dan Jurden
djurden@outlook.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform