jodman
asked on
SQL server agent job not running
I am using SQL server 2005 and i have set up an SQL server agent job to run a stored procedure every 30 minutes but for some reason the job is failing to run.
If i simply call teh stored procedure it works fine and i have no idea why the job isn;t working.
Any advice would be greatfully received.
If i simply call teh stored procedure it works fine and i have no idea why the job isn;t working.
Any advice would be greatfully received.
what is the stored proc doing?
ASKER
Originally is was selecting records from one table into a new table dependant on some column values.
However i changed the code to simply drop 2 tables to keep the code simple in order to test whether my more complex code was causing the job not to run.
This would appear to not be the case as the job / SP continue to not run.
However i changed the code to simply drop 2 tables to keep the code simple in order to test whether my more complex code was causing the job not to run.
This would appear to not be the case as the job / SP continue to not run.
does the table query remote servers?
ASKER
No, the code simply drops 2 tables from the server.
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
The job has never run and so there are no entires in the job history.
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Incidentally, you should be able to get more information on why the job failed from the Job History. If you can provide information from there I could probably help you out more.