|
-
May 1st, 2006, 03:15 PM
#1
Thread Starter
Lively Member
Timer Or windows Task scheduler?
My application needs to export data from Sql to a text file and uploads the text file to a server every hour.
Which could be a better option to automate this?
Timer or Task scheduler?
What all problems you can encounter with a task scheduler.?
Any insights would be helpful
thx
-
May 1st, 2006, 03:22 PM
#2
Re: Timer Or windows Task scheduler?
You might want to consider a DTS package. Since this is the database handling most of the load, you probably don't need to make a seperate application to accomodate.
Assuming you have Enterprise Manager.
-
May 1st, 2006, 03:30 PM
#3
Re: Timer Or windows Task scheduler?
It may well be a better option to use the built-in capabilities of SQL Server, but assuming that you are going to use a .NET application to do it then it depends on whether you need this action to be performed whether your app is running or not. If you need it to be run every hour whether your app is running or not then a scheduled task is the way to go because Windows will look after things itself. If you only need it to happen when your app is running then a Timer may well be a better option. Just be aware though, that if you use a Timer that raises its events in the UI thread and the UI thread is busy doing something then the event will not be handled until the UI thread decides to process pending events.
-
May 1st, 2006, 04:16 PM
#4
Thread Starter
Lively Member
Re: Timer Or windows Task scheduler?
I didnt do DTS because I have to process the data (validation , formatting , log files etc) b4 sending to text file.
Since it runs every hour the process takes less than a minute or two to finish. And I dont want my app open 24 hrs if it snot doing anything else.
So I guess windows task scheduler is a better option in this case.
Thanks alot for the input.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|