SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Checking the Job Status on Multiple Servers


Checking the Job Status on Multiple Servers

Author
Message
Sivakumar Mahalingam-480206
Sivakumar Mahalingam-480206
Forum Newbie
Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)

Group: General Forum Members
Points: 3 Visits: 26
Comments posted to this topic are about the item Checking the Job Status on Multiple Servers
ChiragNS
ChiragNS
Hall of Fame
Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)Hall of Fame (3.4K reputation)

Group: General Forum Members
Points: 3369 Visits: 1865
nice article, but is there any method other than linked server to connect to various servers.

"Keep Trying"
oskargunn
oskargunn
SSC-Enthusiastic
SSC-Enthusiastic (142 reputation)SSC-Enthusiastic (142 reputation)SSC-Enthusiastic (142 reputation)SSC-Enthusiastic (142 reputation)SSC-Enthusiastic (142 reputation)SSC-Enthusiastic (142 reputation)SSC-Enthusiastic (142 reputation)SSC-Enthusiastic (142 reputation)

Group: General Forum Members
Points: 142 Visits: 291
I always seem to get this error:

Msg 7357, Level 16, State 2, Line 1
Cannot process the object "exec msdb.dbo.sp_help_job". The OLE DB provider "SQLNCLI" for linked server "JOB_TSSQL6" indicates that either the object has no columns or the current user does not have permissions on that object.


JOB_TSSQL6 is the name of my linked server.
joe_goldberg
joe_goldberg
Forum Newbie
Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)

Group: General Forum Members
Points: 3 Visits: 9
Just to be completely open about all this, I am employed by BMC Software. Having said that, I would like to suggest using an Enterprise Job Scheduler, like BMC CONTROL-M, that provides the ability to run SQL Server jobs such as sql scripts or stored procedures. If you use CONTROL-M, you get centralized job status monitoring from single management console across any number of database instances. You get all the infrastructure that has usually been built to manage scheduling such as 24x7 staffing, alerting via the scheduling console, email, automatic incident creation in Remedy, Service Desk Express, HP Service Desk and other such tools, ability to define automatic recovery actions and simple and intuitive dependencies between database tasks and other batch such as running your apps, file transfers, managing ERPs like SAP, Peoplesoft or Oracle eBusiness Suite, etc.

You don't need to create additional databases to track anything because CONTROL-M does it all for you. You don't need to write and maintain scripts and perhaps best of all, DBAs can spend their time administering databases rather than doing job scheduling.
oskargunn
oskargunn
SSC-Enthusiastic
SSC-Enthusiastic (142 reputation)SSC-Enthusiastic (142 reputation)SSC-Enthusiastic (142 reputation)SSC-Enthusiastic (142 reputation)SSC-Enthusiastic (142 reputation)SSC-Enthusiastic (142 reputation)SSC-Enthusiastic (142 reputation)SSC-Enthusiastic (142 reputation)

Group: General Forum Members
Points: 142 Visits: 291
Is it not possible to run stored procedures through a linked server? I have RPC set to true.
don.schaeffer
don.schaeffer
SSC-Enthusiastic
SSC-Enthusiastic (153 reputation)SSC-Enthusiastic (153 reputation)SSC-Enthusiastic (153 reputation)SSC-Enthusiastic (153 reputation)SSC-Enthusiastic (153 reputation)SSC-Enthusiastic (153 reputation)SSC-Enthusiastic (153 reputation)SSC-Enthusiastic (153 reputation)

Group: General Forum Members
Points: 153 Visits: 1062
You can use powershell to execute a script on multiple servers. This article shows how to do this, populating an excel worksheet with information on failed jobs: http://www.mssqltips.com/tip.asp?tip=1798

I modified that script, adding sheets showing backups, database data file space, and recent lines in the error log, filtering out mundane messages. Failed jobs, failed backups and data files with less than a certain percentage of free space are in red.

I then scheduled a job executing this script each morning before I come in, resulting in a quick summary of our servers.
mushtaq777
mushtaq777
SSC-Enthusiastic
SSC-Enthusiastic (176 reputation)SSC-Enthusiastic (176 reputation)SSC-Enthusiastic (176 reputation)SSC-Enthusiastic (176 reputation)SSC-Enthusiastic (176 reputation)SSC-Enthusiastic (176 reputation)SSC-Enthusiastic (176 reputation)SSC-Enthusiastic (176 reputation)

Group: General Forum Members
Points: 176 Visits: 442
Hi , its a very cool article.

Can't we get the information of the jobs running under master server.
Sivakumar Mahalingam-480206
Sivakumar Mahalingam-480206
Forum Newbie
Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)

Group: General Forum Members
Points: 3 Visits: 26
Hi,

Thanks for your comment. Yes you should be able to get the jobs from the master server too. Pls check that the master server is listed in the sysservers table.

Regards,
Siva.
RayMan007
RayMan007
SSC Rookie
SSC Rookie (43 reputation)SSC Rookie (43 reputation)SSC Rookie (43 reputation)SSC Rookie (43 reputation)SSC Rookie (43 reputation)SSC Rookie (43 reputation)SSC Rookie (43 reputation)SSC Rookie (43 reputation)

Group: General Forum Members
Points: 43 Visits: 273
I am getting the following error when I try to run the usp_help_job_status stored procedure.

Msg 208, Level 16, State 1, Procedure usp_help_job_status, Line 17
Invalid object name 'mondb.dbo.job_status'.

What am I doing wrong?:-D
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search