Re: ENT manager job status
From: Hari Prasad (hari_prasad_k_at_hotmail.com)
Date: 09/15/04
- Next message: Adam Machanic: "Re: Yukon in Production"
- Previous message: Jon Rista: "Extreme performance issues (SQL Server 2000/ADO.NET/C#)"
- In reply to: Red: "ENT manager job status"
- Next in thread: Mark Allison: "Re: ENT manager job status"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 14 Sep 2004 20:39:02 -0500
Hi,
You could query the sysjobs table in MSDB database.
select name , enabled from msdb..sysjobs where enabled=1
You could run this query using OSQL command line utility
OSQL -S Server1 -Usa -Ppassword -Q"select name , enabled from msdb..sysjobs
where enabled=1" >c:\result.txt
OSQL -S Server2 -Usa -Ppassword -Q"select name , enabled from msdb..sysjobs
where enabled=1" >>c:\result.txt
Thanks
Hari
MCDNA
"Red" <RedWolf_56@yahoo.com> wrote in message
news:%23szm0PqmEHA.556@tk2msftngp13.phx.gbl...
> Hey all,
> I was wondering if someone could point me to correct data in the msdb
> database. Here is what I'm looking for. I want to be able go from server
> to
> server and check the status of all the jobs that are enabled. I know I
> can
> (and do) use ENT. Manger to do this but, hey, it tedious work. Open
> server,
> open management, open SQL sever agent, click on jobs.....
> I'd rather run query, from a my desk top, that will connect to the
> servers I need and run this query.
>
> Hope that is clear enough.
>
> TIA
>
> Red
>
>
- Next message: Adam Machanic: "Re: Yukon in Production"
- Previous message: Jon Rista: "Extreme performance issues (SQL Server 2000/ADO.NET/C#)"
- In reply to: Red: "ENT manager job status"
- Next in thread: Mark Allison: "Re: ENT manager job status"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|