Hey SQL Fans,
Today I thought I would write a quick post about Central Management Server for SQL Server. I have been to so many customers who are not making use of this amazng a free feature that ships with SQL Server. I always ask the resident DBA team at a customer, how they are managing their SQL instances and whether they are using CMS. Surprisingly, they have either never heard about it, or they have, but cannot find a use for it?
I personally feel that CMS should be a part a foundation to your SQL Server Eco System. It makes the life of a DBA so much easier when it comes to your day to day administration, as well as additional free SQL Server features you would like to use, i.e. Policy Based Management, Management Data Warehouse, Multi-Server Queries and Multi Server Administration etc.
Today, I would like to show you how to set this wondeful feature up, how to register your SQL instances within CMS, and set up your master and target SQL agents.
Click on View -> Registered Servers.
Right click on Central Management Servers -> Register Central Management Server
You will be presented with a window to enter a Database Server that will act as the Central Management Server. If you have a dedicated DBA server, this woul d be ideal
Once this information has been saved, you will see a CMS server registered
You can now create groups under your CMS to manage different areas of your SQL Eco system.
Below, I have included an example of how you could group your SQL instances, based on how you manage your environment:
NOTE: When creating your various SQL groups, think of the multi-server queries you would run against these groups. A multi-server query is a query you can run against a group of servers. The query will return results from each server registered in a specific group.
Well done 🙂 you have now created a CMS for your SQL environment. This is a great foundation for your SQL environment within your organization. CMS will allow you to run queries across SQL group. CMS will help you find information a lot quicker, as well as help with maintenance queries etc, eg. running DMV queries against CMS groups to find backup information, index usage, query execution information etc.
Next, I would like to show you how to configure the SQL Agent of your CMS for Multi-Server SQL Server Administration.
I hope you guys enjoyed this quick post on CMS and that you start making the relevant changes within your SQL eco system.