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 2000 Forums
 SQL Server Administration (2000)
 Debuging Scheduled Jobs

Author  Topic 

saidtak
Starting Member

6 Posts

Posted - 2010-12-20 : 18:58:08
Can I get some help with the best way to debug a failed scheduled job other than reading the error message in the Job History window?

Thanks in advance.

S.B.

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-12-20 : 19:00:28
The error message is where I start. What does your say so that we can give some guidance?

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

saidtak
Starting Member

6 Posts

Posted - 2010-12-20 : 19:23:33
Yes, u r right, but most of the time it doesn't help much! This is what I get when the job fails:

The job failed. The Job was invoked by Schedule 82 (PostgresToMsrReduced). The last step to run was step 1 (PostgresToMsrReduced).

S.B.
Go to Top of Page

saidtak
Starting Member

6 Posts

Posted - 2010-12-20 : 19:27:26
I was hopping there is something like "sysjobstepslogs" in 2005 !

S.B.
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-12-20 : 19:31:42
Well you can have a job step log more information, but it depends on what process it is. It appears you are using Postgres, and I don't have any knowledge about that.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

saidtak
Starting Member

6 Posts

Posted - 2010-12-20 : 19:46:14

Right, the job basically imports data from a postgres database to sql 2000.

So there is nothing to set up to get more info in the logs? what about that "Output File" option in the advanced Edit Job Step window?


S.B.
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-12-20 : 19:53:25
The output file only helps if there's output from the process.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

saidtak
Starting Member

6 Posts

Posted - 2010-12-20 : 20:10:21
I see...what about from the query side! is there a sql statement I can add to the query to generate more info to the output?

S.B.
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-12-20 : 20:13:10
Well it really depends on the code. We would need to see it, although with Postgres it may be hard for us to help.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

russell
Pyro-ma-ni-yak

5072 Posts

Posted - 2010-12-20 : 20:34:01
Does the job execute a DTS package to perform the import? If so, have the DTS log to a file. This will give detailed messaging.
Go to Top of Page

saidtak
Starting Member

6 Posts

Posted - 2010-12-20 : 20:35:59
I am afraid I can't do that with the company policy! Thank u so much Tara.

S.B.
Go to Top of Page

russell
Pyro-ma-ni-yak

5072 Posts

Posted - 2010-12-20 : 20:51:52
Well, what method are you using to do the import?
Go to Top of Page
   

- Advertisement -