Now this is a valid statement that is being executed, and I noticed that it is performing the desired operation. My question is: is it reliable to do this in a single statement in SQL Server? By reliable, I mean that it Foowill be set to Barits original value before the value Baris changed to null.
update SomeTable
set Foo = Bar,
Bar = null
Please note that I am asking a question about the fundamental design of SQL Server. Therefore, I am interested in answers that go beyond the scope of observations, and cite Microsoft documentation (or the old sybase) and / or convincingly demonstrate why SQL Server works in a certain way at a low fundamental level.
source
share