{"id":12346,"date":"2019-05-20T21:51:17","date_gmt":"2019-05-20T21:51:17","guid":{"rendered":"https:\/\/dbtut.com\/?p=12346"},"modified":"2019-05-20T21:51:18","modified_gmt":"2019-05-20T21:51:18","slug":"how-to-check-the-compatibility-level-of-databases-using-policy-based-management","status":"publish","type":"post","link":"https:\/\/dbtut.com\/index.php\/2019\/05\/20\/how-to-check-the-compatibility-level-of-databases-using-policy-based-management\/","title":{"rendered":"How To Check the Compatibility Level of Databases Using Policy Based Management"},"content":{"rendered":"<p>Policy-Based Management is a feature that is introduced with SQL Server 2008. It allows us to set the rules we want in our systems, to set our standards and to make our controls automatically. For example, we can create a policy for control purposes so that the names of our stored procedures do not start with a number or database recovery models are not simple.<\/p>\n<p>Before reading this article, I recommend you read the article &#8220;<a href=\"https:\/\/dbtut.com\/index.php\/2018\/12\/11\/what-is-sql-server-database-compatibility-level-and-how-to-change-database-compatibility-level\/\" target=\"_blank\" rel=\"noopener noreferrer\">What is SQL Server Database Compatibility Level and How to Change the Database Compatibility Level<\/a>&#8221; to learn what the Compatibility Level is.<\/p>\n<p>To comprehend Policy Based Management (PBM), you need to understand some concepts.<\/p>\n<h2>Facet<\/h2>\n<p>A feature that can be managed by PBM. For example, there is a facet named Database. And using this facet, you can create a policy that checks the compatibility levels of databases.<\/p>\n<p>You can access all facets via SSMS as follows. To access the facet details, you must double-click on it.<\/p>\n<p id=\"wWfwhFU\"><img loading=\"lazy\" decoding=\"async\" width=\"543\" height=\"212\" class=\"size-full wp-image-12349  aligncenter\" src=\"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/05\/img_5ce31d54078a4.png\" alt=\"\"><\/p>\n<h2>Condition<\/h2>\n<p>Checks whether the sub-property of the related facets provide the specified condition. For example, you can check if there is a character that you do not want in the database name with the Name sub-property of the Database facet.<\/p>\n<p>Let&#8217;s create a policy to check if there are characters that we don&#8217;t want in the database names.<\/p>\n<h2>Create a Policy<\/h2>\n<p>Right click Policies tab as follows from the Management&gt; Policy tab and click New Policy.<\/p>\n<p id=\"wCgvfyQ\"><img loading=\"lazy\" decoding=\"async\" width=\"698\" height=\"236\" class=\"size-full wp-image-12351  aligncenter\" src=\"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/05\/img_5ce31d7d51e31.png\" alt=\"\"><\/p>\n<p>We give a name to Policy on the screen that appears. We need to create a condition from Check Condition.<\/p>\n<h3>Create a Condition<\/h3>\n<p>We&#8217;re clicking on New Condition.<\/p>\n<p id=\"UqASvCB\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-12353  aligncenter\" src=\"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/05\/img_5ce31dcce8a1f.png\" alt=\"\" width=\"785\" height=\"328\"><\/p>\n<p>We give a name to the condition from the screen that appears.<\/p>\n<p>Since we will check the databases that do not have a compatibility level of 130, we make the following selections.<\/p>\n<p id=\"EzTIIOm\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-12355  aligncenter\" src=\"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/05\/img_5ce31df87e9ee.png\" alt=\"\" width=\"812\" height=\"284\"><\/p>\n<h3>Create Schedule for Policy<\/h3>\n<p>By selecting On Schedule from the Evaluation Mode, we select the interval at which the policy will be checked and then click the Enable check box.<\/p>\n<p>If we choose On Demand, it only checks when we execute policy.<\/p>\n<p>If you have a server-based condition, you can create a server-based condition from the server restriction section.<\/p>\n<p id=\"iYazUHF\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-12357  aligncenter\" src=\"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/05\/img_5ce31e341ff1e.png\" alt=\"\" width=\"682\" height=\"518\"><\/p>\n<p>If you want it to be checked automatically at certain intervals, click New in the Schedule section and determine the frequency that the policy will check the condition. We set it up to work once every day at 12: 00: 000 PM.<\/p>\n<p id=\"SdQqYJa\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-12359  aligncenter\" src=\"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/05\/img_5ce31e57af4aa.png\" alt=\"\" width=\"764\" height=\"611\"><\/p>\n<h2>Evaluate Policy<\/h2>\n<p>We created our policy. We click Evaluate as below to run it manually.<\/p>\n<p id=\"BHTlHAz\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"195\" class=\"size-full wp-image-12361  aligncenter\" src=\"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/05\/img_5ce31e8de11ee.png\" alt=\"\"><\/p>\n<p>I got a result as follows in my local.<\/p>\n<p id=\"NHDOmrF\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-12363  aligncenter\" src=\"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/05\/img_5ce31ea63b035.png\" alt=\"\" width=\"801\" height=\"628\"><\/p>\n<p>When we click on View, we can see why the policy is failed.<\/p>\n<p>As you will see, while the compatibility level we want to have is level 130, this database has a compatibility level of 120. Thats why the policy has been failed for this database.<\/p>\n<p id=\"ROCSDdQ\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-12365  aligncenter\" src=\"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/05\/img_5ce31eca87953.png\" alt=\"\" width=\"700\" height=\"119\"><\/p>\n<p>When you refresh the instance, a red color x sign appears on the left side of the instance, that looks like the letter. The reason for this is that we have a policy that is failed on the instance. When you see this mark, you must look at the defined policies and fulfill their requirements.<\/p>\n<p>In our example, after you change the compatibility levels of the databases that the policy is failed to 130, this mark will disappear when we evaluate the policy again.<\/p>\n<p id=\"wIqChis\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-12367  aligncenter\" src=\"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/05\/img_5ce31ef29e4db.png\" alt=\"\" width=\"618\" height=\"153\"><\/p>\n<h2>Conclusion<\/h2>\n<p>With Policy Based Management, you can check many things on SQL Server. And I think a professional database manager should use this feature that SQL Server offers us. You can find more articles on Policy Based Management at the following links.<\/p>\n<p>&#8220;How To Check Recovery Model of All Databases Using Policy Based Management&#8221;,<\/p>\n<p>&#8220;How To Check Stored Procedure Names Using Policy Based Management&#8221;,<\/p>\n<p>&#8220;How To Check VLF Counts in the Databases Using Policy Based Management&#8221;,<\/p>\n<p>&#8220;How To Check SQL Logins That Password Policy Enforced or Password Expiration Enabled Using Policy Based Management&#8221;,<\/p>\n<p>&#8220;How To Check Disabled Audits Using Policy Based Management&#8221;,<\/p>\n<p>&#8220;How To Check Auto Shrink Option of Databases Using Policy Based Management&#8221;,<\/p>\n<p>&#8220;How To Check Whether Availability Groups is Ready To Failover Using Policy Based Management&#8221;,<\/p>\n<p>&#8220;How To Check Availability Group&#8217;s Backup Preference Using Policy Based Management&#8221;,<\/p>\n<p>&#8220;How To Check Availability Group Automatic Failover Settings Using Policy Based Management&#8221;,<\/p>\n<p>&#8220;How To Check Whether Readable Secondary is Enabled on Availability Groups Using Policy Based Management&#8221;,<\/p>\n<p>&#8220;How To Check Whether Data File Sizes is Reached a Specific Size Using Policy Based Management&#8221;,<\/p>\n<p>&#8220;How To Check Auto Close Option of Databases Using Policy Based Management&#8221;,<\/p>\n<p>&#8220;How To Check Last Log Backup Time Using Policy Based Management&#8221;,<\/p>\n<p>&#8220;How To Check Page Verify Option of Databases Using Policy Based Management&#8221;<\/p>\n\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_12346\" class=\"pvc_stats all  \" data-element-id=\"12346\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/dbtut.com\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Policy-Based Management is a feature that is introduced with SQL Server 2008. It allows us to set the rules we want in our systems, to set our standards and to make our controls automatically. For example, we can create a policy for control purposes so that the names of our stored procedures do not start &hellip;<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_12346\" class=\"pvc_stats all  \" data-element-id=\"12346\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/dbtut.com\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"author":1,"featured_media":12369,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[3],"tags":[4518,4505,4507,4506,4515,4513,4516,4517,4508,4511,4510,4512,4514,4509],"class_list":["post-12346","post","type-post","status-publish","format-standard","has-post-thumbnail","","category-mssql","tag-check-all-databases-compatibility-level","tag-check-database-compatibility-level","tag-create-a-condition","tag-create-a-policy","tag-create-a-policy-in-sql-server","tag-evaluate-a-policy","tag-how-to-check-sql-server-database-compatibility","tag-how-to-find-a-databases-compatibility-level","tag-policy-based-management","tag-policy-management","tag-policy-management-in-sql-server","tag-sql-server-policies","tag-use-policy-management","tag-what-is-policy-based-management"],"aioseo_notices":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How To Check the Compatibility Level of Databases Using Policy Based Management - Database Tutorials<\/title>\n<meta name=\"description\" content=\"How To Check the Compatibility Level of Databases Using Policy Based Management\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/dbtut.com\/index.php\/2019\/05\/20\/how-to-check-the-compatibility-level-of-databases-using-policy-based-management\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Check the Compatibility Level of Databases Using Policy Based Management - Database Tutorials\" \/>\n<meta property=\"og:description\" content=\"How To Check the Compatibility Level of Databases Using Policy Based Management\" \/>\n<meta property=\"og:url\" content=\"https:\/\/dbtut.com\/index.php\/2019\/05\/20\/how-to-check-the-compatibility-level-of-databases-using-policy-based-management\/\" \/>\n<meta property=\"og:site_name\" content=\"Database Tutorials\" \/>\n<meta property=\"article:published_time\" content=\"2019-05-20T21:51:17+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-05-20T21:51:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/05\/Ads\u0131z-60.png\" \/>\n\t<meta property=\"og:image:width\" content=\"643\" \/>\n\t<meta property=\"og:image:height\" content=\"376\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"dbtut\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"dbtut\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/dbtut.com\/index.php\/2019\/05\/20\/how-to-check-the-compatibility-level-of-databases-using-policy-based-management\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2019\/05\/20\/how-to-check-the-compatibility-level-of-databases-using-policy-based-management\/\"},\"author\":{\"name\":\"dbtut\",\"@id\":\"https:\/\/dbtut.com\/#\/schema\/person\/fc047c39e1e53dce28fc4253529ea408\"},\"headline\":\"How To Check the Compatibility Level of Databases Using Policy Based Management\",\"datePublished\":\"2019-05-20T21:51:17+00:00\",\"dateModified\":\"2019-05-20T21:51:18+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2019\/05\/20\/how-to-check-the-compatibility-level-of-databases-using-policy-based-management\/\"},\"wordCount\":777,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/dbtut.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2019\/05\/20\/how-to-check-the-compatibility-level-of-databases-using-policy-based-management\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/05\/Ads\u0131z-60.png\",\"keywords\":[\"Check All Databases Compatibility Level\",\"check database compatibility level\",\"create a condition\",\"create a policy\",\"create a policy in sql server\",\"evaluate a policy\",\"How to check SQL Server Database compatibility\",\"How To Find A Database's Compatibility Level\",\"policy based management\",\"Policy Management\",\"Policy Management in SQL Server\",\"sql server policies\",\"use Policy Management\",\"what is policy based management\"],\"articleSection\":[\"MSSQL\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/dbtut.com\/index.php\/2019\/05\/20\/how-to-check-the-compatibility-level-of-databases-using-policy-based-management\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/dbtut.com\/index.php\/2019\/05\/20\/how-to-check-the-compatibility-level-of-databases-using-policy-based-management\/\",\"url\":\"https:\/\/dbtut.com\/index.php\/2019\/05\/20\/how-to-check-the-compatibility-level-of-databases-using-policy-based-management\/\",\"name\":\"How To Check the Compatibility Level of Databases Using Policy Based Management - Database Tutorials\",\"isPartOf\":{\"@id\":\"https:\/\/dbtut.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2019\/05\/20\/how-to-check-the-compatibility-level-of-databases-using-policy-based-management\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2019\/05\/20\/how-to-check-the-compatibility-level-of-databases-using-policy-based-management\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/05\/Ads\u0131z-60.png\",\"datePublished\":\"2019-05-20T21:51:17+00:00\",\"dateModified\":\"2019-05-20T21:51:18+00:00\",\"description\":\"How To Check the Compatibility Level of Databases Using Policy Based Management\",\"breadcrumb\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2019\/05\/20\/how-to-check-the-compatibility-level-of-databases-using-policy-based-management\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/dbtut.com\/index.php\/2019\/05\/20\/how-to-check-the-compatibility-level-of-databases-using-policy-based-management\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/dbtut.com\/index.php\/2019\/05\/20\/how-to-check-the-compatibility-level-of-databases-using-policy-based-management\/#primaryimage\",\"url\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/05\/Ads\u0131z-60.png\",\"contentUrl\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/05\/Ads\u0131z-60.png\",\"width\":643,\"height\":376},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/dbtut.com\/index.php\/2019\/05\/20\/how-to-check-the-compatibility-level-of-databases-using-policy-based-management\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/dbtut.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How To Check the Compatibility Level of Databases Using Policy Based Management\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/dbtut.com\/#website\",\"url\":\"https:\/\/dbtut.com\/\",\"name\":\"Database Tutorials\",\"description\":\"MSSQL, Oracle, PostgreSQL, MySQL, MariaDB, DB2, Sybase, Teradata, Big Data, NOSQL, MongoDB, Couchbase, Cassandra, Windows, Linux\",\"publisher\":{\"@id\":\"https:\/\/dbtut.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/dbtut.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/dbtut.com\/#organization\",\"name\":\"dbtut\",\"url\":\"https:\/\/dbtut.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/dbtut.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2021\/02\/dbtutlogo.jpg\",\"contentUrl\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2021\/02\/dbtutlogo.jpg\",\"width\":223,\"height\":36,\"caption\":\"dbtut\"},\"image\":{\"@id\":\"https:\/\/dbtut.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/dbtut.com\/#\/schema\/person\/fc047c39e1e53dce28fc4253529ea408\",\"name\":\"dbtut\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/dbtut.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c322c32021bf651d9e103b183963c479a9c9791ead0715f4348203496c39aa54?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c322c32021bf651d9e103b183963c479a9c9791ead0715f4348203496c39aa54?s=96&d=mm&r=g\",\"caption\":\"dbtut\"},\"description\":\"We are a team with over 10 years of database management and BI experience. Our Expertises: Oracle, SQL Server, PostgreSQL, MySQL, MongoDB, Elasticsearch, Kibana, Grafana.\",\"sameAs\":[\"http:\/\/NurullahCAKIR\"],\"url\":\"https:\/\/dbtut.com\/index.php\/author\/dbtut\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How To Check the Compatibility Level of Databases Using Policy Based Management - Database Tutorials","description":"How To Check the Compatibility Level of Databases Using Policy Based Management","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/dbtut.com\/index.php\/2019\/05\/20\/how-to-check-the-compatibility-level-of-databases-using-policy-based-management\/","og_locale":"en_US","og_type":"article","og_title":"How To Check the Compatibility Level of Databases Using Policy Based Management - Database Tutorials","og_description":"How To Check the Compatibility Level of Databases Using Policy Based Management","og_url":"https:\/\/dbtut.com\/index.php\/2019\/05\/20\/how-to-check-the-compatibility-level-of-databases-using-policy-based-management\/","og_site_name":"Database Tutorials","article_published_time":"2019-05-20T21:51:17+00:00","article_modified_time":"2019-05-20T21:51:18+00:00","og_image":[{"width":643,"height":376,"url":"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/05\/Ads\u0131z-60.png","type":"image\/png"}],"author":"dbtut","twitter_card":"summary_large_image","twitter_misc":{"Written by":"dbtut","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/dbtut.com\/index.php\/2019\/05\/20\/how-to-check-the-compatibility-level-of-databases-using-policy-based-management\/#article","isPartOf":{"@id":"https:\/\/dbtut.com\/index.php\/2019\/05\/20\/how-to-check-the-compatibility-level-of-databases-using-policy-based-management\/"},"author":{"name":"dbtut","@id":"https:\/\/dbtut.com\/#\/schema\/person\/fc047c39e1e53dce28fc4253529ea408"},"headline":"How To Check the Compatibility Level of Databases Using Policy Based Management","datePublished":"2019-05-20T21:51:17+00:00","dateModified":"2019-05-20T21:51:18+00:00","mainEntityOfPage":{"@id":"https:\/\/dbtut.com\/index.php\/2019\/05\/20\/how-to-check-the-compatibility-level-of-databases-using-policy-based-management\/"},"wordCount":777,"commentCount":0,"publisher":{"@id":"https:\/\/dbtut.com\/#organization"},"image":{"@id":"https:\/\/dbtut.com\/index.php\/2019\/05\/20\/how-to-check-the-compatibility-level-of-databases-using-policy-based-management\/#primaryimage"},"thumbnailUrl":"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/05\/Ads\u0131z-60.png","keywords":["Check All Databases Compatibility Level","check database compatibility level","create a condition","create a policy","create a policy in sql server","evaluate a policy","How to check SQL Server Database compatibility","How To Find A Database's Compatibility Level","policy based management","Policy Management","Policy Management in SQL Server","sql server policies","use Policy Management","what is policy based management"],"articleSection":["MSSQL"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/dbtut.com\/index.php\/2019\/05\/20\/how-to-check-the-compatibility-level-of-databases-using-policy-based-management\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/dbtut.com\/index.php\/2019\/05\/20\/how-to-check-the-compatibility-level-of-databases-using-policy-based-management\/","url":"https:\/\/dbtut.com\/index.php\/2019\/05\/20\/how-to-check-the-compatibility-level-of-databases-using-policy-based-management\/","name":"How To Check the Compatibility Level of Databases Using Policy Based Management - Database Tutorials","isPartOf":{"@id":"https:\/\/dbtut.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/dbtut.com\/index.php\/2019\/05\/20\/how-to-check-the-compatibility-level-of-databases-using-policy-based-management\/#primaryimage"},"image":{"@id":"https:\/\/dbtut.com\/index.php\/2019\/05\/20\/how-to-check-the-compatibility-level-of-databases-using-policy-based-management\/#primaryimage"},"thumbnailUrl":"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/05\/Ads\u0131z-60.png","datePublished":"2019-05-20T21:51:17+00:00","dateModified":"2019-05-20T21:51:18+00:00","description":"How To Check the Compatibility Level of Databases Using Policy Based Management","breadcrumb":{"@id":"https:\/\/dbtut.com\/index.php\/2019\/05\/20\/how-to-check-the-compatibility-level-of-databases-using-policy-based-management\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/dbtut.com\/index.php\/2019\/05\/20\/how-to-check-the-compatibility-level-of-databases-using-policy-based-management\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/dbtut.com\/index.php\/2019\/05\/20\/how-to-check-the-compatibility-level-of-databases-using-policy-based-management\/#primaryimage","url":"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/05\/Ads\u0131z-60.png","contentUrl":"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/05\/Ads\u0131z-60.png","width":643,"height":376},{"@type":"BreadcrumbList","@id":"https:\/\/dbtut.com\/index.php\/2019\/05\/20\/how-to-check-the-compatibility-level-of-databases-using-policy-based-management\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/dbtut.com\/"},{"@type":"ListItem","position":2,"name":"How To Check the Compatibility Level of Databases Using Policy Based Management"}]},{"@type":"WebSite","@id":"https:\/\/dbtut.com\/#website","url":"https:\/\/dbtut.com\/","name":"Database Tutorials","description":"MSSQL, Oracle, PostgreSQL, MySQL, MariaDB, DB2, Sybase, Teradata, Big Data, NOSQL, MongoDB, Couchbase, Cassandra, Windows, Linux","publisher":{"@id":"https:\/\/dbtut.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/dbtut.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/dbtut.com\/#organization","name":"dbtut","url":"https:\/\/dbtut.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/dbtut.com\/#\/schema\/logo\/image\/","url":"https:\/\/dbtut.com\/wp-content\/uploads\/2021\/02\/dbtutlogo.jpg","contentUrl":"https:\/\/dbtut.com\/wp-content\/uploads\/2021\/02\/dbtutlogo.jpg","width":223,"height":36,"caption":"dbtut"},"image":{"@id":"https:\/\/dbtut.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/dbtut.com\/#\/schema\/person\/fc047c39e1e53dce28fc4253529ea408","name":"dbtut","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/dbtut.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/c322c32021bf651d9e103b183963c479a9c9791ead0715f4348203496c39aa54?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c322c32021bf651d9e103b183963c479a9c9791ead0715f4348203496c39aa54?s=96&d=mm&r=g","caption":"dbtut"},"description":"We are a team with over 10 years of database management and BI experience. Our Expertises: Oracle, SQL Server, PostgreSQL, MySQL, MongoDB, Elasticsearch, Kibana, Grafana.","sameAs":["http:\/\/NurullahCAKIR"],"url":"https:\/\/dbtut.com\/index.php\/author\/dbtut\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/posts\/12346","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/comments?post=12346"}],"version-history":[{"count":0,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/posts\/12346\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/media\/12369"}],"wp:attachment":[{"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/media?parent=12346"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/categories?post=12346"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/tags?post=12346"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}