Quantcast
Channel: ฟอรัม Getting started with SQL Server
Viewing all articles
Browse latest Browse all 8428

SSMS 2012 - Central Management Servers

$
0
0

How does the Central Management Servers work?

I found http://msdn.microsoft.com/en-us/library/bb934126(v=sql.110).aspx

So, step 1: I registered server (looks to me like a group name);

step 2: I registers my SQL Server instances under that registered server (New Server Registration)

step 3: In theory, I can right click on the name on step 1 and choose New Query. And I can issue something like

SELECT DISTINCT name
FROM msdb.dbo.sysjobhistory a, msdb.dbo.sysjobs b
WHERE a.job_id = b.job_id
AND a.run_status = 0 --is fail, 1 is pass
AND convert(varchar(8),a.run_date, 112) = convert(varchar(8),dateadd(dd,-1,getdate()), 112)
ORDER BY b.name

and I should get all the jobs for each server (from step 2) that failed yesterday.

So can I re-run the failed job from Central Management Servers? Or was my example above the only purpose of Central Management Servers?




Viewing all articles
Browse latest Browse all 8428

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>