SQL Server------sqlserver2008r2 new user and set access permissions for the table

Source: Internet
Author: User

In the project docking, sometimes in the system security considerations, we need to set the database access rights, this time, we can add a user, and then set the user's access rights, the following steps:

1, New Login Object

2, click User Mappings

3, after the operation, click OK, there may be error interface, no tube, then the new user has appeared in the login name

4, choose the database Zngkpt, and then select the corresponding table Cms_release, right-click Properties----Search,

5, click Search, the Search box appears, and then enter the user name just now, click Check Name

6, then click on the user name test, then select the appropriate permissions

7, click OK, logout SQL Server, and then log in with test, the interface is as follows, click another database to display no access

8, when deleting the user, pay attention to the deletion sequence, first delete the user name in the database, and then delete the user name in the server, if the deletion prompts you the user is logged in, you can restart the SQL Server servers to resolve this.

SQL Server------sqlserver2008r2 new user and set access permissions for the table

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.