Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 26th, 2007, 12:20 PM
Registered User
 
Join Date: Jun 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to import a text file w/t changing row order

When I import a flat text file onto MS SQL Server through Data transformation Service, sometimes the order of rows in the table is the same as that of the text file, sometimes it's not, even if I did the exactly the same thing. That's really weird.

The bottom line is that I want to keep the original order of rows because I lost the identities of the records and need to merge two files based on the row order.

Can anyone help me on this? Thanks!
 
Old July 12th, 2007, 07:04 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

How did you confirm that the order changed? Did you open that table in EM or using query analyser? I would suggest you have an identity column in the destination table, and try to import data from the flat file except the identity column, thus you can see it in order that you find it in the flat file.

_________________________
- Vijay G
Strive for Perfection





Similar Threads
Thread Thread Starter Forum Replies Last Post
Import from Excel sheet to a text file zone Excel VBA 1 July 26th, 2007 10:34 AM
How can i import a local text file into a jsp file ravibabu Java GUI 1 April 25th, 2007 04:05 AM
How to import data from text file? starnet SQL Server 2000 1 September 18th, 2006 06:56 AM
writing text file but in an order specifed... stone XSLT 2 October 27th, 2005 05:17 AM
import excel file and stop at first empty row derik SQL Server DTS 2 September 24th, 2004 04:16 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.