Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SSIS and Import/Export (2005)
 SSIS Help - Import Data from Excel with Truncate

Author  Topic 

TMDOSS
Starting Member

33 Posts

Posted - 2008-11-25 : 13:16:59
I imported the data from Excel to SQL table.
Before I insert into the table I need to truncate the SQL Table
Pl Help

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-11-25 : 13:24:54
add a execute SQL task before data flow task with statement
TRUNCATE TABLE yourtablename


and link it to current data flow task
Go to Top of Page

igorblackbelt
Constraint Violating Yak Guru

407 Posts

Posted - 2008-11-25 : 14:56:30
And make sure you use the connection to the database on your Execute SQL Task and not your Excel connection.


---
http://www.ssisdude.blogspot.com/
Go to Top of Page
   

- Advertisement -