• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 140
  • Last Modified:

Scheduled Task not running properly...

On Windows NT I had a scheduled task that would perform some actions and then open up an MS Access database.

The database has an autoexec macro that imports text files into the tables, saves, and then closes the database.

So for the last year and a half, it has run just fine on NT 4 but we've since upgraded to Windows 2000 Advanced Server.

Now, when I open the database normally it works just fine but for some reason, the scheduled task just doesn't want to get past the database stuff.

I have tried opening permisions right up but perhaps I am missing something somewhere?
0
treyjeff
Asked:
treyjeff
  • 3
  • 2
1 Solution
 
mikecrCommented:
If you run the task yourself without using Task Scheduler, does it run successfully?
0
 
treyjeffAuthor Commented:
Yes it does. It's just when running it through task scheduler. And it gets through all the processing scripts, it dies on the last step which is when launching the database.

Then it ends up giving me an error when i try to open any Access dbs:

"Couldn't use 'C:\WINNT\System32\system.mdw'; file already in use."
0
 
mikecrCommented:
The log is pretty remedial, however, if you go to the log in Task Scheduler does it have information in it as to the process bombing? Try setting the process to run as the local system account and see if it runs the whole way thru.
0
 
treyjeffAuthor Commented:
Well, it wouldn't run under website user but would under admin, I'll have to look into that later but at least for now it works.
0
 
mikecrCommented:
No problem. Glad I could help. Good luck!
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now