Note that there are some explanatory texts on larger screens.

plurals
  1. POSSIS Data Flow performance slow vs select into
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. COFirst off, you're not doing the same thing. Your first query is going to a specific date in your archive table and writing that into another table. You then pull 3 columns from that much smaller table into the final destination. Contrast that with your SSIS approach wherein you're grabbing every field on your archive table, which if it's more than those 3 columns, you're going to have to read a lot more data than is required. You'll also have to compute the maximum date from the archive table vs a fixed point in time. Finally, the first does not have to factor in network latency, second might.
      singulars
    2. COHmm, Data Flow should beat SELECT INTO? You could use an Execute SQL Task to obtain the MAX(My_date) and store it in a variable, and then use that variable in the OLE DB Source in the Data Flow. (Incidentally, your title should read "SSIS Data Flow..." instead of "SSIS Task Flow...".) That just separates out the subquery. The other thing would be to check the metadata on the arrow from the Source to the Destination. Do all the 100 columns have the correct data types? You can also add a [Data Viewer](http://msdn.microsoft.com/en-us/library/ms140318.aspx) and watch the data as it goes by.
      singulars
    3. COI thought you were transferring all 100+ columns in both cases, and you were just showing an abbreviated version of the script. If you only need a subset of the columns, then you definitely need to tell SSIS about that before it goes and moves gigabytes ...
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload