Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unexpected Behavior with UPDATE and ERROR
Message
General information
Forum:
Microsoft SQL Server
Category:
Stored procedures, Triggers, UDFs
Miscellaneous
Thread ID:
00455711
Message ID:
00455831
Views:
32
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform