{"id":1706,"date":"2020-03-19T20:45:14","date_gmt":"2020-03-19T17:45:14","guid":{"rendered":"https:\/\/artem.services\/?p=1703"},"modified":"2020-03-19T21:28:33","modified_gmt":"2020-03-19T18:28:33","slug":"1706","status":"publish","type":"post","link":"https:\/\/artem.services\/?p=1706&lang=en","title":{"rendered":"MS SQL &#8212; Creating a user with full permissions to the database"},"content":{"rendered":"<p><img loading=\"lazy\" class=\"aligncenter size-full wp-image-1704\" src=\"https:\/\/artem.services\/wp-content\/uploads\/2020\/03\/mssql-logo.png\" alt=\"\" width=\"750\" height=\"500\" srcset=\"https:\/\/artem.services\/wp-content\/uploads\/2020\/03\/mssql-logo.png 750w, https:\/\/artem.services\/wp-content\/uploads\/2020\/03\/mssql-logo-300x200.png 300w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/p>\n<p>Create the user &quot;<strong>admin_web<\/strong>&quot; with the username &quot;<strong>admin_web<\/strong>&quot;, password &quot;<strong>password1234<\/strong>&quot; and provide the owner permissions to the database &quot;<strong>artem_services<\/strong>&quot;<\/p>\n<p>Create <strong>LOGIN<\/strong>:<\/p>\n<pre class=\"brush: sql; title: ; notranslate\" title=\"\">\r\nCREATE LOGIN admin_web with Password ='password1234';\r\nGO\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>Use necessary database:<\/p>\n<pre class=\"brush: sql; title: ; notranslate\" title=\"\">\r\nUSE artem_services;\r\nGO\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>Create a <strong>USER<\/strong> for the previously created <strong>LOGIN<\/strong>:<\/p>\n<pre class=\"brush: sql; title: ; notranslate\" title=\"\">\r\nCREATE USER admin_web FOR LOGIN admin_web;\r\nGO\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>Add a <strong>USER<\/strong> to the database owners group:<\/p>\n<pre class=\"brush: sql; title: ; notranslate\" title=\"\">\r\nALTER ROLE db_owner ADD MEMBER admin_web;\r\nGO\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Create the user &quot;admin_web&quot; with the username &quot;admin_web&quot;, password &quot;password1234&quot; and provide the owner permissions to the database &quot;artem_services&quot; Create LOGIN: &nbsp; Use necessary database: &nbsp; Create a USER for the previously created LOGIN: &nbsp; Add a USER to the database owners group:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1359],"tags":[1361,1363],"_links":{"self":[{"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/1706"}],"collection":[{"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1706"}],"version-history":[{"count":3,"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/1706\/revisions"}],"predecessor-version":[{"id":1717,"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/1706\/revisions\/1717"}],"wp:attachment":[{"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1706"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1706"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1706"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}