Solved

retrieve same order

Posted on 2012-03-19
2
202 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
ID: 37739458
When you create the temp table add an identity or timestamp field
0
 
LVL 9

Author Closing Comment

by:sevensnake77
ID: 37739550
timestamp  worked great,  Thanks
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

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…
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

785 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