Thank you for replying on the post.
Can you also please help me with the T-SQL script to insert data
You could use a 'numbers' table to do this (1,2,3,4,5,6,7,8,9,...).
Join to the numbers table on
numbers.number <= stagingtable.NumOfRowsToCreate
And that will give you the required number of rows.
Help us to help you. For better, quicker and more-focused answers to your questions, consider following the advice in this
If the answer to your question can be found with a brief Google search, please perform the search yourself, rather than expecting one of the SSC members to do it for you.
Please surround any code or links you post with the appropriate IFCode formatting tags. It helps readability a lot.