New for SQL Server 2022: Use GENERATE_SERIES to generate a series of numbers between two values
Microsoft SQL Server 2022 introduces an exciting new feature: the GENERATE_SERIES function!
There are several different ways to generate a table or series of numbers between two given values. Say that you wanted to populate a table with an integer column and the values should be sequential integers between 1,000 and 1,000,000. Below I cover three different methods of accomplishing this task. The last method covers using the GENERATE_SERIES function that is new to SQL Serverā¦












