Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Update and Set in one statement?
Message
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2014
Application:
Web
Miscellaneous
Thread ID:
01611535
Message ID:
01611555
Views:
36
>>>Hi,
>>>I would like to create a SQL Server command that would set a column to a value and at the same time set the value before the change.
>>>

>>Look into OUTPUT clause for UPDATE command in order to set variables of before and after values (Deleted and Inserted tables).
>
>Did you see what Hugo suggested? And thank you for your suggestions.

I saw it, but it's not a good suggestion. OUTPUT clause is the way to go.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform