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)
 how to schedule a project in two differnt schedule

Author  Topic 

dhani
Posting Yak Master

132 Posts

Posted - 2008-11-13 : 11:21:17
in my project i have a package which reads data from file and process then stores to oneTable (ex: empDateTable)

this above package needs to be execute 10 to 20 times a day
but on every day morning(start of the day) the table needs to be clean (truncate all data in the table)

i can workout this with Execute Sql Task but what i am asking is where can i define this (i mean in another package in the same project)
or completely new project

because this cleaning needs to be done only once during start of the day

what can i do, please share any plans

Thanks in advance

Best Regards
asin

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2008-11-13 : 11:25:47
You don't need separate packages for it. Put truncate table command in SQL job and schedule it to run one time. Also remove truncate table logic from previous one.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-11-13 : 11:25:53
if this needs to done only once per day, then just configure another job to execute once a day which executes truncate table statement.
Go to Top of Page
   

- Advertisement -