Elegant
I
would let this piece of code to stand on its own. I like it.
UPDATE
TOP (100) Messages
SET
Status = 'Sending'
OUTPUT
Inserted.*
WHERE
Status IN (
'New',
'Sending') -- we previously failed to send this message
I
would let this piece of code to stand on its own. I like it.
UPDATE
TOP (100) Messages
SET
Status = 'Sending'
OUTPUT
Inserted.*
WHERE
Status IN (
'New',
'Sending') -- we previously failed to send this message
And 4 more posts are pending...
There are posts all the way to Feb 17, 2025
Comments
Comment preview