Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Raise an exception from within a SP
Message
De
08/12/2005 13:04:15
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Stored procedures, Triggers, UDFs
Versions des environnements
SQL Server:
SQL Server 2000
Divers
Thread ID:
01076224
Message ID:
01076278
Vues:
27
>Not really.
>value in @@Error changes after the execution of each statement. So if the first statement returned and error, and the last one returned ok, then @@error is ok. So after each statement you need to check @@error and copy its value into your own var.

Now you known because i doesn't suggest this.
On SQL 2005 TRY/CATCH fixes this
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform