[MS SQL Server 7]
We load a table from a text file using Data Transformation Services. The
source file is already sorted by primary key order.
After the DTS load, the default retrieval order on the target table (select
* from targettable) appears to be random. I know that theoretically the
retrieval order from a SELECT statement isn't guaranteed, but this is the
first time that I've actually had a default retrieval not follow the
primary key order in the table. I'm thinking that what we're seeing is the
physical storage order of the rows in the table, which have been somewhat
scrambled by the way that DTS loads a text file (probably some I/O
optimization).
Is there any way that we can get DTS to load the table in the order that
the rows appear in the text file (assuming that's what our problem is)?
The Project Lead really doesn't like the fact that the default retrieval
order isn't following the primary key.
Regards,
Lyle H. Gray