3

I have a SQL Server scheduled job which has been running for about 6 months every night.

However, it has stopped doing what it should (transfering data from one database to the next). There are no errors and when I run it manually it is fine.

I'm struggling to see why it would run manually and not on a schedule.

Any ideas?

AJM
  • 32,054
  • 48
  • 155
  • 243

5 Answers5

1

Check the log for errors. It might be the user under which the job runs does not have rights to one or both of the database (old user that got his right removed after he quittes your company??)

Try to put yourself as the job owner since it is running when you run it manually

Hugo
  • 567
  • 1
  • 8
  • 18
0

I'm assuming this was a job owner/permissions issue, as I just had the same problem. Is there any reason why this won't give you a warning or error when this happens? Am I missing something? Is there a setting that you can change to allow sql server to report errors for things like this?

user609926
  • 801
  • 2
  • 12
  • 25
0

Recently got server restarted? It may be SQL Server Agent service running in Manual Startup Mode. Have you tried to restart?

Pavel Nefyodov
  • 876
  • 2
  • 11
  • 29
0

Is the job running and not doing anything or is it failing to run during the scheduled time? If the SQL Agent job history isn't logging any errors, check the SQL Server error log for suspicious entries. Additionally, in the case of the latter, verify not only that the job is enabled, but also the specific schedule.

Taylor Gerring
  • 1,825
  • 1
  • 12
  • 17
0

What everyone else (three preceding posts) said. If you still can't figure things out, fire up SQL Profiler and have it running while the job is (supposed to be) running to see what, if any, queries or logins are received by the database server.

Philip Kelley
  • 39,426
  • 11
  • 57
  • 92