Solved

retrieve same order

Posted on 2012-03-19
2
195 Views
Last Modified: 2012-03-19
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.
0
Comment
Question by:sevensnake77
2 Comments
 
LVL 18

Accepted Solution

by:
vasto earned 500 total points
Comment Utility
When you create the temp table add an identity or timestamp field
0
 
LVL 9

Author Closing Comment

by:sevensnake77
Comment Utility
timestamp  worked great,  Thanks
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now