Search code examples
sql-serverms-accessssisoledbetl

SSIS Access Database - Need to empty table on my destination Access Database table before inserting new records


Task:

Transfer data from SQL Server into Access Database

Issue:

How to empty my Access destination table before I run the data flow?

I tried to use an Execute SQL Task to run a TRUNCATE command similar to SQL Server, but it seems not working with Access Database?

Thanks in advance!


Solution

  • You can use Execute SQL Task to query a Microsoft Access Database, but you cannot use a Truncate command since it is not supported, you have to use a DELETE FROM ... command.

    The following screenshots show an example of the OLE DB Connection manager, and the Execute SQL Task configuration:

    enter image description here

    enter image description here