{"id":436,"date":"2018-02-20T13:17:33","date_gmt":"2018-02-20T20:17:33","guid":{"rendered":"http:\/\/s1095387061.online-home.ca\/?p=436"},"modified":"2026-11-08T09:40:59","modified_gmt":"2026-11-08T15:40:59","slug":"mssqltips-tip-50","status":"publish","type":"post","link":"https:\/\/databaserefresh.com\/blog\/mssqltips-tip-50\/","title":{"rendered":"MSSQLTips: Tip #50 &#8211; Different ways to sort multi-server SQL Server query results using Central Management Server"},"content":{"rendered":"<p>Central Management Server (CMS) is a SQL Server feature that allows you to manage multiple SQL Servers at the same time. You can run T-SQL scripts or execute Policy-Based Management policies on multiple servers. You can also group SQL Servers and run the scripts on a specific group of SQL Servers.<\/p>\n<p>How else can CMS be used? How can we overcome some of the limitations when we run queries against CMS Server Groups?<\/p>\n<p>In this tip we will show you a couple of CMS tricks. In our examples below we will show how you can sort the CMS query results for different scenarios. We will also provide a couple of examples of alternative uses of CMS.<\/p>\n<p>Please read the latest MSSQLTips post: &#8220;<a href=\"https:\/\/www.mssqltips.com\/sqlservertip\/5344\/different-ways-to-sort-multiserver-sql-server-query-results-using-central-management-server\/\">Different ways to sort multi-server SQL Server query results using Central Management Server<\/a>&#8220;.<\/p>\n<p>Check out all of my tips here: <a title=\"http:\/\/www.mssqltips.com\/sqlserverauthor\/94\/svetlana-golovko\/\" href=\"http:\/\/www.mssqltips.com\/sqlserverauthor\/94\/svetlana-golovko\/\" target=\"_blank\" rel=\"noopener\">http:\/\/www.mssqltips.com\/sqlserverauthor\/94\/svetlana-golovko\/<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Central Management Server (CMS) is a SQL Server feature that allows you to manage multiple SQL Servers at the same time. You can run T-SQL scripts or execute Policy-Based Management policies on multiple servers. You can also group SQL Servers &hellip; <a href=\"https:\/\/databaserefresh.com\/blog\/mssqltips-tip-50\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"footnotes":""},"categories":[12,59,41,3,30],"tags":[164,165,32,42,166,154,16,158,152,167],"class_list":["post-436","post","type-post","status-publish","format-standard","hentry","category-dba_checks","category-monitoring","category-scripts","category-sql_server","category-tips-sql_server","tag-central-management-server","tag-cms","tag-mssql-tips","tag-mssqltips","tag-registered-servers","tag-scripts","tag-sql-server","tag-ssms","tag-t-sql","tag-tricks"],"_links":{"self":[{"href":"https:\/\/databaserefresh.com\/blog\/wp-json\/wp\/v2\/posts\/436","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/databaserefresh.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/databaserefresh.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/databaserefresh.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/databaserefresh.com\/blog\/wp-json\/wp\/v2\/comments?post=436"}],"version-history":[{"count":1,"href":"https:\/\/databaserefresh.com\/blog\/wp-json\/wp\/v2\/posts\/436\/revisions"}],"predecessor-version":[{"id":437,"href":"https:\/\/databaserefresh.com\/blog\/wp-json\/wp\/v2\/posts\/436\/revisions\/437"}],"wp:attachment":[{"href":"https:\/\/databaserefresh.com\/blog\/wp-json\/wp\/v2\/media?parent=436"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/databaserefresh.com\/blog\/wp-json\/wp\/v2\/categories?post=436"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/databaserefresh.com\/blog\/wp-json\/wp\/v2\/tags?post=436"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}