Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SSIS 2005: "Append rows to the destination table" is greyed out. Why?

In SQL Server 2005, Import Data (SSIS), my desire is to import a text file and have it append to an existing table. The first time through the wizard on the Column Mappings step I swear the Append rows to the destination table radio button was enabled. But, now, it's disabled (grey) and even re-starting the wizard won't cause it to re-enable.

Is there some secret/magic I don't know about? How do I get that option to re-enable so that I can append (rather than Create destination table)?

like image 937
Pete Alvin Avatar asked Aug 06 '10 16:08

Pete Alvin


2 Answers

I know what you're missing... because I once missed it too!

From the screen, "Select Source Tables and Views",
there is a "destination" drop-down menu on the right side.

Select your table from this drop-down,
then click on the "Edit Mappings" button.

Now the append option will be enabled!

like image 63
Indy Avatar answered Oct 22 '22 16:10

Indy


In my experience, if the table you're importing into doesn't exist at the time you're going through the "SSIS Import and Export Wizard", you won't have the option to Append; if the table does exist at the time you're going through the wizard, the option is available.

If you do choose the "Create table" option, the wizard just builds the SSIS package with an Execute SQL task that builds the table prior to the data flow that loads the data. So, you can always just remove the task in the resulting package and you'll get "Append" by default.

like image 45
Patrick Marchand Avatar answered Oct 22 '22 18:10

Patrick Marchand