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,385 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
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
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

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

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

Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

920 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now