Skip to content

Instantly share code, notes, and snippets.

@joe-oli
Created December 7, 2022 11:56
Show Gist options
  • Save joe-oli/28e33e283378afa8a602f6cfc0a1684c to your computer and use it in GitHub Desktop.
Save joe-oli/28e33e283378afa8a602f6cfc0a1684c to your computer and use it in GitHub Desktop.
Get Next Sequence Number
declare @result int
SET @result = (NEXT VALUE FOR dbo.auto_seq)
select @result
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment