Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Unexpected Behavior with UPDATE and ERROR
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Stored procedures, Triggers, UDFs
Divers
Thread ID:
00455711
Message ID:
00455831
Vues:
33
Why would this statement cause an error? Are you passing incompatible data types?

>UPDATE Company
> SET Price = @Price
> WHERE CompanyID = @CompanyID
>


>SET @ErrorNo = @@ERROR, @RowCnt = @@ROWCOUNT

Replace the SET with a SELECT and everything should work.

-Mike
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform