{"id":118,"date":"2020-08-21T12:39:31","date_gmt":"2020-08-21T10:39:31","guid":{"rendered":"https:\/\/wiki.activenet.sk\/?p=118"},"modified":"2020-09-04T08:50:09","modified_gmt":"2020-09-04T06:50:09","slug":"mssql-ako-pridat-readonly-usera","status":"publish","type":"post","link":"https:\/\/wiki.activenet.sk\/index.php\/2020\/08\/21\/mssql-ako-pridat-readonly-usera\/","title":{"rendered":"MSSQL ako prida\u0165 readonly usera"},"content":{"rendered":"\n<p>To create a read-only database user account for Microsoft SQL Server 2005<\/p>\n\n\n\n<ol type=\"1\"><li>Start Microsoft SQL Management Studio.<\/li><li>In the Connect to Server window, in the Server name box, select the SQL Server 2005 computer on which the database is installed.<\/li><li>In the Authentication box, click&nbsp;<strong>SQL Server Authentication<\/strong>.<\/li><li>In the Login box, type a user name that has permissions to create new accounts.<\/li><li>In the Password box, type the password for the user name.<\/li><li>Click&nbsp;<strong>Connect<\/strong>.<\/li><li>On the SQL Server Management Studio window, in the Object Explorer pane, right-click&nbsp;<strong>Security<\/strong>, and then click&nbsp;<strong>New &gt; Login<\/strong>.<\/li><li>In the Login-New dialog box, perform the following tasks in the order in which they appear:<ul><li>In the Select a page pane, click&nbsp;<strong>General<\/strong>.<\/li><li>In the right pane, in the Login name box, type a logon name for the new user.<\/li><li>Check&nbsp;<strong>SQL Server authentication<\/strong>, type a password for the user, and then confirm the password.<\/li><li>Uncheck&nbsp;<strong>User must change password at next login<\/strong>.<\/li><li>In the Default database box, select the database to be read by this user.<\/li><\/ul><\/li><li>In the Login-New dialog box, in the Select a page pane, click&nbsp;<strong>Server Roles<\/strong>.<\/li><li>In the right pane, click&nbsp;<strong>public<\/strong>.<\/li><li>In the Login-New dialog box, in the Select a page pane, click&nbsp;<strong>User Mapping<\/strong>.<\/li><li>In the right pane, under Users mapped to this login, make sure that you have selected the database to read.<\/li><li>Under Database role membership for the database, click&nbsp;<strong>db_datareader<\/strong>.This role gives the user read-only data access to the database. The role of public is always selected and cannot be cleared.<\/li><li>Click&nbsp;<strong>OK<\/strong>.<\/li><\/ol>\n","protected":false},"excerpt":{"rendered":"<p>To create a read-only database user account for Microsoft SQL Server 2005 Start Microsoft SQL Management Studio. In the Connect to Server window, in the Server name box, select the SQL Server 2005 computer on which the database is installed. In the Authentication box, click&nbsp;SQL Server Authentication. In the Login box, type a user name [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[6],"tags":[],"_links":{"self":[{"href":"https:\/\/wiki.activenet.sk\/index.php\/wp-json\/wp\/v2\/posts\/118"}],"collection":[{"href":"https:\/\/wiki.activenet.sk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wiki.activenet.sk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wiki.activenet.sk\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/wiki.activenet.sk\/index.php\/wp-json\/wp\/v2\/comments?post=118"}],"version-history":[{"count":3,"href":"https:\/\/wiki.activenet.sk\/index.php\/wp-json\/wp\/v2\/posts\/118\/revisions"}],"predecessor-version":[{"id":121,"href":"https:\/\/wiki.activenet.sk\/index.php\/wp-json\/wp\/v2\/posts\/118\/revisions\/121"}],"wp:attachment":[{"href":"https:\/\/wiki.activenet.sk\/index.php\/wp-json\/wp\/v2\/media?parent=118"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wiki.activenet.sk\/index.php\/wp-json\/wp\/v2\/categories?post=118"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wiki.activenet.sk\/index.php\/wp-json\/wp\/v2\/tags?post=118"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}