I am trying to create a stored procedure that will return set is results and then use these results to insert into a database, I know how do this this individually but not as a combined stored procedure:

Any help is appreciated.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Try something like this:
For your edit, it looks like you want to use UNPIVOT.
Here’s a basic UNPIVOT example, modified straight from the MSDN UNPIVOT example:
You should be able to expand it from there.