{"id":2721,"date":"2020-01-30T12:46:00","date_gmt":"2020-01-30T09:46:00","guid":{"rendered":"https:\/\/www.ozgurguler.net\/blog\/?p=2721"},"modified":"2021-01-15T10:23:32","modified_gmt":"2021-01-15T07:23:32","slug":"sql-2017-clr-strict-security-hatasi","status":"publish","type":"post","link":"https:\/\/www.ozgurguler.net\/blog\/sql-2017-clr-strict-security-hatasi\/","title":{"rendered":"SQL 2017 Clr strict security hatas\u0131"},"content":{"rendered":"\n<hr class=\"wp-block-separator\"\/>\n\n\n<p>sp_configure \u2018clr enabled\u2019, 0<br \/>GO<br \/>RECONFIGURE<br \/>GO<\/p>\n<p>EXEC sp_configure \u2018show advanced options\u2019,1;<br \/>GO<br \/>RECONFIGURE;<br \/>GO<br \/>EXEC sp_configure \u2018clr strict security\u2019,0;<br \/>GO<br \/>RECONFIGURE;<br \/>GO<\/p>\n<p>SQL RESTART ED\u0130LMEL\u0130<\/p>\n<hr \/>\n<p>Yukar\u0131daki i\u015fi \u00e7\u00f6zmez ise detay yetki dahil a\u015fa\u011f\u0131dakileri uygulay\u0131n\u0131z<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n\n\n<p>sp_configure \u2018clr enabled\u2019, 1<br>GO<br>RECONFIGURE<br>GO<\/p>\n\n\n\n<p>EXEC sp_configure \u2018show advanced options\u2019,1;<br>GO<br>RECONFIGURE;<br>GO<br>EXEC sp_configure \u2018clr strict security\u2019,0;<br>GO<br>RECONFIGURE;<br>GO<\/p>\n\n\n\n<p>SQL RESTART ED\u0130LMEL\u0130<\/p>\n\n\n\n<p>Y\u0130NE OLMAZ \u0130SE A\u015eA\u011eIDAK\u0130LER\u0130 UYGULAYIN (VERI TABANI ISIMLERINE DIKKAT)<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>USE<\/p>\n\n\n\n<p>master;<\/p>\n\n\n\n<p>GO<\/p>\n\n\n\n<p>EXEC<\/p>\n\n\n\n<p>sp_configure &#8216;clr enabled&#8217;, &#8216;1&#8217;;<\/p>\n\n\n\n<p>RECONFIGURE<\/p>\n\n\n\n<p>WITH OVERRIDE;<\/p>\n\n\n\n<p>go<\/p>\n\n\n\n<p>EXEC sp_configure &#8216;show advanced options&#8217;, &#8216;1&#8217;;<\/p>\n\n\n\n<p>GO<\/p>\n\n\n\n<p>RECONFIGURE;<\/p>\n\n\n\n<p>EXEC sp_configure &#8216;clr enabled&#8217; ,1<\/p>\n\n\n\n<p>GO<\/p>\n\n\n\n<p>RECONFIGURE<\/p>\n\n\n\n<p>GO<\/p>\n\n\n\n<p>EXEC sp_configure &#8216;clr enabled&#8217;&nbsp;&nbsp; &#8212; make sure it took<\/p>\n\n\n\n<p>GO<\/p>\n\n\n\n<p>ALTER DATABASE MikroDB_V15_XXX SET TRUSTWORTHY ON;&nbsp; <\/p>\n\n\n\n<p>EXEC sp_configure &#8216;show advanced options&#8217;, 1<\/p>\n\n\n\n<p>RECONFIGURE;<\/p>\n\n\n\n<p>EXEC sp_configure &#8216;clr strict security&#8217;, 0;<\/p>\n\n\n\n<p>RECONFIGURE;<\/p>\n\n\n\n<p>EXEC sys.sp_configure N&#8217;show advanced options&#8217;, N&#8217;0&#8242;;<\/p>\n\n\n\n<p>RECONFIGURE WITH OVERRIDE;<\/p>\n\n\n\n<p>GO<\/p>\n\n\n\n<p>EXEC sp_configure &#8216;show advanced options&#8217;, 1<\/p>\n\n\n\n<p>RECONFIGURE;<\/p>\n\n\n\n<p>EXEC sp_configure &#8216;clr strict security&#8217;, 0;<\/p>\n\n\n\n<p>RECONFIGURE;<\/p>\n\n\n\n<p>EXEC sys.sp_configure N&#8217;show advanced options&#8217;, N&#8217;1&#8242;;<\/p>\n\n\n\n<p>RECONFIGURE WITH OVERRIDE;<\/p>\n\n\n\n<p>EXEC sys.sp_configure N&#8217;clr strict security&#8217;, N&#8217;0&#8242;;<\/p>\n\n\n\n<p>RECONFIGURE WITH OVERRIDE;<\/p>\n\n\n\n<p>EXEC sys.sp_configure N&#8217;show advanced options&#8217;, N&#8217;0&#8242;;<\/p>\n\n\n\n<p>RECONFIGURE WITH OVERRIDE;<\/p>\n\n\n\n<p>GO<\/p>\n\n\n\n<p>EXEC sys.sp_configure N&#8217;show advanced options&#8217;, N&#8217;1&#8242;;<\/p>\n\n\n\n<p>RECONFIGURE WITH OVERRIDE;<\/p>\n\n\n\n<p>EXEC sys.sp_configure N&#8217;clr strict security&#8217;, N&#8217;1&#8242;;<\/p>\n\n\n\n<p>RECONFIGURE WITH OVERRIDE;<\/p>\n\n\n\n<p>EXEC sys.sp_configure N&#8217;show advanced options&#8217;, N&#8217;0&#8242;;<\/p>\n\n\n\n<p>RECONFIGURE WITH OVERRIDE;<\/p>\n\n\n\n<p>GO<\/p>\n\n\n\n<p>ALTER DATABASE MikroDB_V15_XXX SET TRUSTWORTHY ON;<\/p>\n\n\n\n<p>GO<\/p>\n\n\n\n<p>USE MikroDB_V15_XXX<\/p>\n\n\n\n<p>GO<\/p>\n\n\n\n<p>EXEC sp_changedbowner &#8216;SRV\\Administrator&#8217;<\/p>\n\n\n\n<p>GO<\/p>\n","protected":false},"excerpt":{"rendered":"<p>sp_configure \u2018clr enabled\u2019, 0GORECONFIGUREGO EXEC sp_configure \u2018show advanced options\u2019,1;GORECONFIGURE;GOEXEC sp_configure \u2018clr strict security\u2019,0;GORECONFIGURE;GO SQL RESTART ED\u0130LMEL\u0130 Yukar\u0131daki i\u015fi \u00e7\u00f6zmez ise detay yetki dahil a\u015fa\u011f\u0131dakileri uygulay\u0131n\u0131z &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; sp_configure \u2018clr enabled\u2019, 1GORECONFIGUREGO EXEC sp_configure \u2018show advanced options\u2019,1;GORECONFIGURE;GOEXEC sp_configure \u2018clr strict security\u2019,0;GORECONFIGURE;GO SQL RESTART ED\u0130LMEL\u0130 Y\u0130NE OLMAZ \u0130SE A\u015eA\u011eIDAK\u0130LER\u0130 UYGULAYIN (VERI TABANI ISIMLERINE DIKKAT) USE master; GO EXEC [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":2722,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23,10],"tags":[],"class_list":["post-2721","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mikro","category-sql-server-tsql"],"_links":{"self":[{"href":"https:\/\/www.ozgurguler.net\/blog\/wp-json\/wp\/v2\/posts\/2721","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ozgurguler.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ozgurguler.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ozgurguler.net\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ozgurguler.net\/blog\/wp-json\/wp\/v2\/comments?post=2721"}],"version-history":[{"count":8,"href":"https:\/\/www.ozgurguler.net\/blog\/wp-json\/wp\/v2\/posts\/2721\/revisions"}],"predecessor-version":[{"id":3542,"href":"https:\/\/www.ozgurguler.net\/blog\/wp-json\/wp\/v2\/posts\/2721\/revisions\/3542"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ozgurguler.net\/blog\/wp-json\/wp\/v2\/media\/2722"}],"wp:attachment":[{"href":"https:\/\/www.ozgurguler.net\/blog\/wp-json\/wp\/v2\/media?parent=2721"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ozgurguler.net\/blog\/wp-json\/wp\/v2\/categories?post=2721"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ozgurguler.net\/blog\/wp-json\/wp\/v2\/tags?post=2721"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}