简体   繁体   中英

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!

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:

在此处输入图像描述

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM