|
|
|
Valued Member
      
Group: General Forum Members
Last Login: Today @ 8:48 AM
Points: 64,
Visits: 317
|
|
Like most environments, we have a bunch of SQL servers. I would like to set up some jobs to query all of the instances for certain things and then email me the results. I have a Central Management Server setup and it works great and my queries get me what I need, but I can't schedule a job through the CMS, so it's still a manual process. Does anyone have something set up to do this? I thought about one instance with a ton of linked servers but I'm not sure if that's the best direction to go. Just wondering if anyone has a better solution.
|
|
|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Today @ 1:31 PM
Points: 97,
Visits: 995
|
|
You could use an SSIS package, as described here:
http://www.sqlservercentral.com/blogs/sqlstudies/2012/10/31/looping-through-multiple-servers-in-ssis/
|
|
|
|
|
SSCommitted
      
Group: General Forum Members
Last Login: Today @ 10:20 AM
Points: 1,564,
Visits: 1,719
|
|
scogeb (12/7/2012) ...I would like to set up some jobs to query all of the instances for certain things and then email me the results... I don't know how many instances you have, but I've setup something for myself that collects some daily information about each instance and stores the data in one central database that only I use. The SQL Agent job I created reaches the other servers using SELECT ... FROM OPENROWSET () methodology so I don't need linked servers. You can create the commands from a table with a list of instances, and execute it as dynamic SQL with sp_executesql.
|
|
|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Today @ 4:38 AM
Points: 46,
Visits: 180
|
|
hi,
you can use sql server administration wizard this is new feature right click on sql server agent you will get multi server administration wizard,
select master server (where you can create job)
select target server (where job automatically replicate)
please find below link
http://msdn.microsoft.com/en-us/library/ms180992(v=sql.100).aspx
http://msdn.microsoft.com/en-us/library/ms191305.aspx
|
|
|
|
|
Valued Member
      
Group: General Forum Members
Last Login: Today @ 8:48 AM
Points: 64,
Visits: 317
|
|
| Thanks guys! I've done some more research and Redgate's SQL Monitor might be what I'm looking for. I'm surprised no one recommended it though, so I'm a bit leary. I'll start a new thread on it.
|
|
|
|