I want to overwrite all data in an excel sheet using SSIS. I followed this guide https://dwhanalytics.wordpress.com/2011/04/07/ssis-dynamically-generate-excel-tablesheet/. When I run my package I get the following error:
Description: Executing the query "CREATE TABLE
Excel Destination(clientNr..." failed with the following error: "Table 'Excel Destination' already exists."
The problem lies with the "Drop Excel Table" Execute SQL Task. The "DROP TABLE Excel Destination" query does not delete the Excel Destination sheet in my case - it just deletes the headers, therefore a new sheet with the exact same name cannot be created. How can I delete the sheet instead of deleting the headers?