Tag Archives: SQLRally

Intro to Central Management Server

Do you have a DBA team that consists of more than one dba? Do you have a windows authenticated account that has access to all the SQL Server instances in your farm? If so, you might really want to consider leveraging the Central Management Server (CMS) to do your heavy lifting.

Today, we will cover creating your first Central Management Server. Come back later in the week to see a great example to automate the process of verifying full daily backups.

image

 Step 1: You might not be able to registered serves or see Central Management Servers in SQL Server Management Studio. To view them click on view in the menu bar and click on Registered Servers.

image

 Step 2: Now that you can see Central Management Server folder right click on it and click on Register Central Management Server. This will allow you to designate a server as your Central Management Server.

image

 Step 3: Register your new CMS. In this example I am going to use PBMDEMO\SQL2008 as my Central Management Studio. Once you enter the name test the connection and then save your settings.

image

Step 4: Now that the PBMDEMO\SQL2008 Central Management Server is configured lets add a group to hold development and production instances. This is done by right clicking on the instance (PBMDEMO\SQL2008) and clicking on New Server Group.

image

Step 5: Configure a folder for your production servers. We will use Production as the group name. This will be shown as a folder in the screen shot below.

image

Step 6: Configure a folder group for your development servers. In this case we will add our SQL Express edition as a development server.

image

Step 7: Lets add our Express edition server to the development group. Right click on Development folder and select New Server Registration.

image

Step 8: Add PBMDEMO\SQLEXPRESS as the server name and test the connection. Once its successful save the connection. Lets now repeat steps 7 and 8 to add four instances of SQL Server to the production group (PBMDEMO, PBMDEMO,2008 and PBMDEMO\2005, PBMDEMO\2000)

image 

The screen shot above should be the final result for adding five production instances and one development instance. Come back later in the week as we show you how to leverage the CMS server to run and automate the execution of multi-server queries.

Being proactive with Central Management Server

As promised in previous blog posts I am cranking out some videos to prepare for SQL Rally.  If you aren’t registered for SQL Rally register now. The price jumps up after April 30th. Alright everyone its time to get Proactive.

The goal for this video is very simple. I just want to show you how easy it is to execute a query against your SQL Server farm.  In this example I get proactive by finding database files that are low on space. Once, I find them I can extend them so we aren’t fragmenting our drives by depending on the autogrowth settings.

Central Management Server is a very simple but powerful tool.  To get a taste check out my video below.

[UPDATE 9/14/2011]

The query used in the video above can be found here.  If you liked this video checkout my tip on automating data collection with PowerShell and Central Management Server