Solved

How to clear all contents in a table before exporting data to that table using SSIS package?

Posted on 2007-11-15
6
1,387 Views
Last Modified: 2013-11-30
Hi all,

I want to export data from a SQL database table to a Access database table. However, I want the Destination table to be cleared everytime before the exporting takes place. Can anyone advise me on this? Thks alot.
0
Comment
Question by:dafeizhu
  • 3
  • 3
6 Comments
 
LVL 14

Accepted Solution

by:
cezarF earned 50 total points
ID: 20296734
add an Execute SQL task then put

DELETE your_Table_name

in the SQL Statement box. click ok
0
 

Author Closing Comment

by:dafeizhu
ID: 31409509
Glad for the fast response!
0
 

Author Comment

by:dafeizhu
ID: 20296854
Hi cezarf,
One more question. After i execute this package, the fields will show #DELETE. I need to refresh manually to see the new data. How is it possible to let it refresh automatically?
0
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

 
LVL 14

Expert Comment

by:cezarF
ID: 20296881
where do you see that and from where do you run the package?
0
 

Author Comment

by:dafeizhu
ID: 20296914
I saw that in my Access database. I need to press F5 for the newly inserted data to appear.
0
 
LVL 14

Expert Comment

by:cezarF
ID: 20296976
sorry, but i have no idea how to make it auto refresh.
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question