{"id":12415,"date":"2019-06-11T06:34:12","date_gmt":"2019-06-11T06:34:12","guid":{"rendered":"https:\/\/dbtut.com\/?p=12415"},"modified":"2019-06-11T06:34:12","modified_gmt":"2019-06-11T06:34:12","slug":"how-to-check-stored-procedure-names-using-policy-based-managementregex","status":"publish","type":"post","link":"https:\/\/dbtut.com\/index.php\/2019\/06\/11\/how-to-check-stored-procedure-names-using-policy-based-managementregex\/","title":{"rendered":"How To Check Stored Procedure Names Using Policy Based Management(RegEx)"},"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>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 called Stored Procedure. And you can use this facet to create a policy that checks characters in stored procedure names.<\/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=\"dpBXRCn\"><img loading=\"lazy\" decoding=\"async\" width=\"576\" height=\"584\" class=\"size-full wp-image-12417  aligncenter\" src=\"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/06\/img_5cff4723ae369.png\" alt=\"\"><\/p>\n<h2>Condition<\/h2>\n<p>Checks whether the sub-property of the related facets provide the specified condition. \u00d6rne\u011fin Stored Procedure facet&#8217;\u0131n\u0131n Name alt \u00f6zelli\u011finde istemedi\u011finiz bir karakter olup olmad\u0131\u011f\u0131n\u0131 kontrol edebilirsiniz.<\/p>\n<p>Let&#8217;s create a policy to check whether there are characters we don&#8217;t want in Stored Procedure 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=\"fWWuLtD\"><img loading=\"lazy\" decoding=\"async\" width=\"698\" height=\"236\" class=\"size-full wp-image-12419  aligncenter\" src=\"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/06\/img_5cff475db24c6.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<h2>Create a Condition<\/h2>\n<p>We&#8217;re clicking on New Condition.<\/p>\n<p id=\"WWVrNcF\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-12421  aligncenter\" src=\"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/06\/img_5cff4776032a3.png\" alt=\"\" width=\"748\" height=\"263\"><\/p>\n<p>We give a name to the condition from the screen that appears.<\/p>\n<p>Because we will check the Stored Procedure names , we select the Stored Procedure facet from the Facet section.<\/p>\n<p>By clicking &#8220;&#8230;&#8221; in the Expression section, we select @Name, which is the sub property of the Stored Procedure facet.<\/p>\n<p>There are 4 parameters to check. Let&#8217;s explain them one by one.<\/p>\n<h3>The explanation of the first parameter -&gt; &#8216;%[^A-Za-z0-9[_]]%&#8217;:<\/h3>\n<h4>Explanation of % sign:<\/h4>\n<p>&#8220;the characters between this mark are used anywhere on the name of the stored procedure?&#8221;<\/p>\n<h4>Explanation of the ^ sign:<\/h4>\n<p>We use this sign to check if there are any characters other than the characters we specified after then this sign.<\/p>\n<h4>Explanation of A-Z:<\/h4>\n<p>This means letters A to Z. It refers to uppercase letters.<\/p>\n<h4>Explanation of a-z:<\/h4>\n<p>This means letters a to z. It refers to lowercase letters.<\/p>\n<h4>Explanation of [_]:<\/h4>\n[_] sign means &#8220;_&#8221;.<\/p>\n<h3>Explanation of the second parameter-&gt; &#8216;[0-9]%&#8217;<\/h3>\n<p>You have noticed that we do not put the % sign at the beginning of this parameter. So, stored procedure names must not start with a number. If stored procedure names start with a number, the policy will fail.<\/p>\n<h3>Explanation of the third parameter-&gt; &#8216;[sp]%&#8217;<\/h3>\n<p>This is the same with the second parameter. That is, stored procedure names must not start with &#8220;sp&#8221;. Otherwise the policy will fail.<\/p>\n<h3>Explanation of the fourth parameter<\/h3>\n<p>In the fourth parameter we mean to not check the system stored procedures.<\/p>\n<h3>Explanation of all parameters<\/h3>\n<p>So with these parameters, we mean:<\/p>\n<p>Stored Procedure can contain uppercase letters from A to Z, lowercase letters from a to z, numbers from 0 to 9, and &#8220;_&#8221;. If there is any characters other than these, the policy will fail.<\/p>\n<h3>Condition should be as follows<\/h3>\n<p id=\"ttzKlLC\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-12424  aligncenter\" src=\"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/06\/img_5cff485780a08.png\" alt=\"\" width=\"700\" height=\"410\"><\/p>\n<p style=\"margin: 0in; font-family: Georgia; font-size: 12.0pt;\">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=\"pmHGfbB\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-12426  aligncenter\" src=\"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/06\/img_5cff488318072.png\" alt=\"\" width=\"732\" height=\"522\"><\/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=\"PJEZKyr\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-12428  aligncenter\" src=\"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/06\/img_5cff48aeceaa2.png\" alt=\"\" width=\"730\" height=\"584\"><\/p>\n<p>We created our policy. We click Evaluate as below to run it manually.<\/p>\n<p id=\"frEpAjy\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-12430  aligncenter\" src=\"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/06\/img_5cff48cc053eb.png\" alt=\"\" width=\"597\" height=\"212\"><\/p>\n<p>I received a result as follows in my local.<\/p>\n<p id=\"QdIetxH\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-12432  aligncenter\" src=\"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/06\/img_5cff48f39e21e.png\" alt=\"\" width=\"652\" height=\"404\"><\/p>\n<p>When we click on View, we can see why the policy is failed.<\/p>\n<p>When I clicked on the View, as you can see below, this stored procedure failed because it started with sp.<\/p>\n<p id=\"cZxeQlo\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-12434  aligncenter\" src=\"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/06\/img_5cff49273573d.png\" alt=\"\" width=\"653\" height=\"197\"><\/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>After correcting the Stored procedure names, this mark will disappear when we re-evaluate the policy as described above.<\/p>\n<p id=\"yIPZQsT\"><img loading=\"lazy\" decoding=\"async\" width=\"723\" height=\"179\" class=\"size-full wp-image-12436  aligncenter\" src=\"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/06\/img_5cff4944a665f.png\" alt=\"\"><\/p>\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;<a href=\"https:\/\/dbtut.com\/index.php\/2019\/05\/20\/how-to-check-the-compatibility-level-of-databases-using-policy-based-management\/\" target=\"_blank\" rel=\"noopener noreferrer\">How To Check the Compatibility Level of Databases Using Policy Based Management<\/a>&#8220;,<\/p>\n<p>&#8220;<a href=\"https:\/\/dbtut.com\/index.php\/2019\/06\/09\/how-to-check-recovery-model-of-all-databases-using-policy-based-management\/\" target=\"_blank\" rel=\"noopener noreferrer\">How To Check Recovery Model of All Databases Using Policy Based Management<\/a>&#8220;,<\/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_12415\" class=\"pvc_stats all  \" data-element-id=\"12415\" 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_12415\" class=\"pvc_stats all  \" data-element-id=\"12415\" 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":12438,"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":[4544,4545,4547,4548,4542,4543,4546],"class_list":["post-12415","post","type-post","status-publish","format-standard","has-post-thumbnail","","category-mssql","tag-check-sp-names-with-regular-expressions","tag-policy-base-management-for-stored-procedure-names","tag-regular-expressions-in-sql-server","tag-t-sql-regex","tag-tsql-reqular-expressions","tag-use-regular-expressions-with-tsql","tag-using-regex-in-sql-server"],"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 Stored Procedure Names Using Policy Based Management(RegEx) - Database Tutorials<\/title>\n<meta name=\"description\" content=\"How To Check Stored Procedure Names 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\/06\/11\/how-to-check-stored-procedure-names-using-policy-based-managementregex\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Check Stored Procedure Names Using Policy Based Management(RegEx) - Database Tutorials\" \/>\n<meta property=\"og:description\" content=\"How To Check Stored Procedure Names Using Policy Based Management\" \/>\n<meta property=\"og:url\" content=\"https:\/\/dbtut.com\/index.php\/2019\/06\/11\/how-to-check-stored-procedure-names-using-policy-based-managementregex\/\" \/>\n<meta property=\"og:site_name\" content=\"Database Tutorials\" \/>\n<meta property=\"article:published_time\" content=\"2019-06-11T06:34:12+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/06\/Ads\u0131z-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"726\" \/>\n\t<meta property=\"og:image:height\" content=\"396\" \/>\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=\"5 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\/06\/11\/how-to-check-stored-procedure-names-using-policy-based-managementregex\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2019\/06\/11\/how-to-check-stored-procedure-names-using-policy-based-managementregex\/\"},\"author\":{\"name\":\"dbtut\",\"@id\":\"https:\/\/dbtut.com\/#\/schema\/person\/fc047c39e1e53dce28fc4253529ea408\"},\"headline\":\"How To Check Stored Procedure Names Using Policy Based Management(RegEx)\",\"datePublished\":\"2019-06-11T06:34:12+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2019\/06\/11\/how-to-check-stored-procedure-names-using-policy-based-managementregex\/\"},\"wordCount\":972,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/dbtut.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2019\/06\/11\/how-to-check-stored-procedure-names-using-policy-based-managementregex\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/06\/Ads\u0131z-1.png\",\"keywords\":[\"check sp names with regular expressions\",\"policy base management for stored procedure names\",\"Regular Expressions in SQL Server\",\"t-sql regex\",\"tsql reqular expressions\",\"use regular expressions with TSQL\",\"Using RegEx in SQL Server\"],\"articleSection\":[\"MSSQL\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/dbtut.com\/index.php\/2019\/06\/11\/how-to-check-stored-procedure-names-using-policy-based-managementregex\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/dbtut.com\/index.php\/2019\/06\/11\/how-to-check-stored-procedure-names-using-policy-based-managementregex\/\",\"url\":\"https:\/\/dbtut.com\/index.php\/2019\/06\/11\/how-to-check-stored-procedure-names-using-policy-based-managementregex\/\",\"name\":\"How To Check Stored Procedure Names Using Policy Based Management(RegEx) - Database Tutorials\",\"isPartOf\":{\"@id\":\"https:\/\/dbtut.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2019\/06\/11\/how-to-check-stored-procedure-names-using-policy-based-managementregex\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2019\/06\/11\/how-to-check-stored-procedure-names-using-policy-based-managementregex\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/06\/Ads\u0131z-1.png\",\"datePublished\":\"2019-06-11T06:34:12+00:00\",\"description\":\"How To Check Stored Procedure Names Using Policy Based Management\",\"breadcrumb\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2019\/06\/11\/how-to-check-stored-procedure-names-using-policy-based-managementregex\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/dbtut.com\/index.php\/2019\/06\/11\/how-to-check-stored-procedure-names-using-policy-based-managementregex\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/dbtut.com\/index.php\/2019\/06\/11\/how-to-check-stored-procedure-names-using-policy-based-managementregex\/#primaryimage\",\"url\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/06\/Ads\u0131z-1.png\",\"contentUrl\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/06\/Ads\u0131z-1.png\",\"width\":726,\"height\":396},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/dbtut.com\/index.php\/2019\/06\/11\/how-to-check-stored-procedure-names-using-policy-based-managementregex\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/dbtut.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How To Check Stored Procedure Names Using Policy Based Management(RegEx)\"}]},{\"@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 Stored Procedure Names Using Policy Based Management(RegEx) - Database Tutorials","description":"How To Check Stored Procedure Names 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\/06\/11\/how-to-check-stored-procedure-names-using-policy-based-managementregex\/","og_locale":"en_US","og_type":"article","og_title":"How To Check Stored Procedure Names Using Policy Based Management(RegEx) - Database Tutorials","og_description":"How To Check Stored Procedure Names Using Policy Based Management","og_url":"https:\/\/dbtut.com\/index.php\/2019\/06\/11\/how-to-check-stored-procedure-names-using-policy-based-managementregex\/","og_site_name":"Database Tutorials","article_published_time":"2019-06-11T06:34:12+00:00","og_image":[{"width":726,"height":396,"url":"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/06\/Ads\u0131z-1.png","type":"image\/png"}],"author":"dbtut","twitter_card":"summary_large_image","twitter_misc":{"Written by":"dbtut","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/dbtut.com\/index.php\/2019\/06\/11\/how-to-check-stored-procedure-names-using-policy-based-managementregex\/#article","isPartOf":{"@id":"https:\/\/dbtut.com\/index.php\/2019\/06\/11\/how-to-check-stored-procedure-names-using-policy-based-managementregex\/"},"author":{"name":"dbtut","@id":"https:\/\/dbtut.com\/#\/schema\/person\/fc047c39e1e53dce28fc4253529ea408"},"headline":"How To Check Stored Procedure Names Using Policy Based Management(RegEx)","datePublished":"2019-06-11T06:34:12+00:00","mainEntityOfPage":{"@id":"https:\/\/dbtut.com\/index.php\/2019\/06\/11\/how-to-check-stored-procedure-names-using-policy-based-managementregex\/"},"wordCount":972,"commentCount":0,"publisher":{"@id":"https:\/\/dbtut.com\/#organization"},"image":{"@id":"https:\/\/dbtut.com\/index.php\/2019\/06\/11\/how-to-check-stored-procedure-names-using-policy-based-managementregex\/#primaryimage"},"thumbnailUrl":"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/06\/Ads\u0131z-1.png","keywords":["check sp names with regular expressions","policy base management for stored procedure names","Regular Expressions in SQL Server","t-sql regex","tsql reqular expressions","use regular expressions with TSQL","Using RegEx in SQL Server"],"articleSection":["MSSQL"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/dbtut.com\/index.php\/2019\/06\/11\/how-to-check-stored-procedure-names-using-policy-based-managementregex\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/dbtut.com\/index.php\/2019\/06\/11\/how-to-check-stored-procedure-names-using-policy-based-managementregex\/","url":"https:\/\/dbtut.com\/index.php\/2019\/06\/11\/how-to-check-stored-procedure-names-using-policy-based-managementregex\/","name":"How To Check Stored Procedure Names Using Policy Based Management(RegEx) - Database Tutorials","isPartOf":{"@id":"https:\/\/dbtut.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/dbtut.com\/index.php\/2019\/06\/11\/how-to-check-stored-procedure-names-using-policy-based-managementregex\/#primaryimage"},"image":{"@id":"https:\/\/dbtut.com\/index.php\/2019\/06\/11\/how-to-check-stored-procedure-names-using-policy-based-managementregex\/#primaryimage"},"thumbnailUrl":"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/06\/Ads\u0131z-1.png","datePublished":"2019-06-11T06:34:12+00:00","description":"How To Check Stored Procedure Names Using Policy Based Management","breadcrumb":{"@id":"https:\/\/dbtut.com\/index.php\/2019\/06\/11\/how-to-check-stored-procedure-names-using-policy-based-managementregex\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/dbtut.com\/index.php\/2019\/06\/11\/how-to-check-stored-procedure-names-using-policy-based-managementregex\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/dbtut.com\/index.php\/2019\/06\/11\/how-to-check-stored-procedure-names-using-policy-based-managementregex\/#primaryimage","url":"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/06\/Ads\u0131z-1.png","contentUrl":"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/06\/Ads\u0131z-1.png","width":726,"height":396},{"@type":"BreadcrumbList","@id":"https:\/\/dbtut.com\/index.php\/2019\/06\/11\/how-to-check-stored-procedure-names-using-policy-based-managementregex\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/dbtut.com\/"},{"@type":"ListItem","position":2,"name":"How To Check Stored Procedure Names Using Policy Based Management(RegEx)"}]},{"@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\/12415","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=12415"}],"version-history":[{"count":0,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/posts\/12415\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/media\/12438"}],"wp:attachment":[{"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/media?parent=12415"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/categories?post=12415"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/tags?post=12415"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}