Crazy, but I must admit the convenience. This came up after loading a table. I needed to generate an incremented value in the SQL Server database. Normally, you could do this by setting the column to be of type IDENTITY. I didn’t have the luxury and didn’t want to reload it anyway.
declare @intCounter int
set @intCounter = 234234 — some random number
–set the column and increment
set @intCounter = conference_id = @intCounter + 3
Thanks to Google, which landed me here.