SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Excel Import - row order


Excel Import - row order

Author
Message
Daniel Fountain
Daniel Fountain
Ten Centuries
Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)

Group: General Forum Members
Points: 1407 Visits: 890
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
SSCommitted
SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)

Group: General Forum Members
Points: 1730 Visits: 1099
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/
:-)
Daniel Fountain
Daniel Fountain
Ten Centuries
Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)

Group: General Forum Members
Points: 1407 Visits: 890
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.
Daniel Fountain
Daniel Fountain
Ten Centuries
Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)

Group: General Forum Members
Points: 1407 Visits: 890
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