Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Excel Import - row order


Excel Import - row order

Author
Message
danielfountain
danielfountain
Right there with Babe
Right there with Babe (789 reputation)Right there with Babe (789 reputation)Right there with Babe (789 reputation)Right there with Babe (789 reputation)Right there with Babe (789 reputation)Right there with Babe (789 reputation)Right there with Babe (789 reputation)Right there with Babe (789 reputation)

Group: General Forum Members
Points: 789 Visits: 888
Hey all,

When you import data from SSIS - how does it work with the row order?

Does the row order stay the same in the excel file as it would be in the database table (as a heap)?

Is there any way to make sure it does stay in the same order?

Many thanks

Dan
rhythmk
rhythmk
Say Hey Kid
Say Hey Kid (662 reputation)Say Hey Kid (662 reputation)Say Hey Kid (662 reputation)Say Hey Kid (662 reputation)Say Hey Kid (662 reputation)Say Hey Kid (662 reputation)Say Hey Kid (662 reputation)Say Hey Kid (662 reputation)

Group: General Forum Members
Points: 662 Visits: 1062
danielfountain (9/12/2012)
Hey all,

When you import data from SSIS - how does it work with the row order?

Does the row order stay the same in the excel file as it would be in the database table (as a heap)?

Is there any way to make sure it does stay in the same order?

Many thanks

Dan


To maintain the order use order by clause in the select statement.

--rhythmk
------------------------------------------------------------------
To post your question use below link

http://www.sqlservercentral.com/articles/Best+Practices/61537/
:-)
danielfountain
danielfountain
Right there with Babe
Right there with Babe (789 reputation)Right there with Babe (789 reputation)Right there with Babe (789 reputation)Right there with Babe (789 reputation)Right there with Babe (789 reputation)Right there with Babe (789 reputation)Right there with Babe (789 reputation)Right there with Babe (789 reputation)

Group: General Forum Members
Points: 789 Visits: 888
rhythmk (9/12/2012)
danielfountain (9/12/2012)
Hey all,

When you import data from SSIS - how does it work with the row order?

Does the row order stay the same in the excel file as it would be in the database table (as a heap)?

Is there any way to make sure it does stay in the same order?

Many thanks

Dan


To maintain the order use order by clause in the select statement.


Problem is the excel file isnt ordered, but i need it in the order that the excel file is in :-)

So i cant order by.
danielfountain
danielfountain
Right there with Babe
Right there with Babe (789 reputation)Right there with Babe (789 reputation)Right there with Babe (789 reputation)Right there with Babe (789 reputation)Right there with Babe (789 reputation)Right there with Babe (789 reputation)Right there with Babe (789 reputation)Right there with Babe (789 reputation)

Group: General Forum Members
Points: 789 Visits: 888
Additionally.

My testing seems to suggest that it pulls the data off in excel order. Is this correct or just a coincidence?

Another question has arrived however?

Does this work the same with the ACE engine? I am currently using JET.

Dan
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search