retrieve same order

yes I am using a cursor.
Now when the cursor executes it pulls multiply tables
what is does take each invoice number and pulls all info related to the invoice number.
Then i insert it in the temp table. The problem I am having once in the temp table all the data is bunch
together.  now I need the data to look in the same order it was retrieved.

any suggestions.
Seven priceFull StackAsked:
Who is Participating?
vastoConnect With a Mentor Commented:
When you create the temp table add an identity or timestamp field
Seven priceFull StackAuthor Commented:
timestamp  worked great,  Thanks
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.