Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Import CSV into SQL Table

$
0
0

Hi,

I have a csv file like the below:

RecordNumber StateName
1                    BlackTown
2                    BanksTown
3                    Hills

When I use SSIS Flat File source to load into OLE DB Destination (SQL table ), what kind of sorting for the data in SQL table.

SQL table definition

RowID identity(1,1) int, RecordNumber, StateName

I assume data result should be like

RowID  RecordNumber StateName
   1             1                    BlackTown
   2             2                    BanksTown
   3             3                    Hills

NOT like
RowID  RecordNumber StateName
   1             2                    BlackTown
   2             3                    BanksTown
   3             1                    Hills

My comment is:

Flat file can not load in particular sorting on a column, it always load data as physical sorting and user cannot specify any sorting against any column as you cannot do sorting on flat file.

Please confirm my comment whether it is correct.


Sea Cloud


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>