Luca
Luca

Reputation: 374

SSIS package to export query result to CSV does not export all the records

I am developing on Visual studio 2015 (with data tools extensions) a simple SSIS package: it has a connection (Sql server 2008), an OLEDB Origin, containing a query, connected to a flat file destination.

When I run the package the csv file is created, it contains exactly the needed fields but only 169 records (expected about 700).

I compared the contents of the csv with the data from the query and noticed that:

Do you have any suggestion to solve this? I need to export all records in the same order. It seems that the Order by clause in the query is ignored by the export and that records exported are a sample of the original ones.

Upvotes: 1

Views: 1656

Answers (1)

Luca
Luca

Reputation: 374

I discovered the issue, my fault.

I checked and saved the data from sql management studio, then developed the dtsx.

Meanwhile that data (that I believed to be unmodifiable) has been modified, therefore the dtsx showed the updated version and I checked it against the old version.

Upvotes: 1

Related Questions