Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can I use an IF
Message
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
Stored procedures, Triggers, UDFs
Title:
Can I use an IF
Miscellaneous
Thread ID:
00761098
Message ID:
00761098
Views:
67
I want to write a stored procedure, and pass it several parameters. One of the parameters would be if it is an update or new record. Can I write a stored procedure that:

if @tiAction=1
* Code to Update
else
* Code to insert



Thanks
Kirk
Next
Reply
Map
View

Click here to load this message in the networking platform