To create the insert statement for given range of values you can send the values as parameter into SP.
For example if there is table Orders and having key column OrderId.
Then you can provide the range for which you want to generate the sql insert statement.
Like:
exec GenerateInsertStatement 1,10,'Orders'
then it will create the insert statement for those 10 records.
You can also update this SP as your requirement.