New user and associated database tutorial, sqlserver Database

Source: Internet
Author: User

New user and associated database tutorial, sqlserver Database

We often need to create a user with permissions on the database. This user can only operate on a specific database (for example, this user can only read, write, and so on ), so how should we set it on sqlserver? The following steps are a bit long. You only need to set them step by step.

Method/step

If you have not activated sqlserver identity authentication, first enter the Management System to activate the windowns identity.

 

Property-right-click Security-activate

 

 

Then you need to restart (In the context menu)

 

Then, choose "security"> "Login Name"> "Add new login name ".

 

Enter the user name and password. It is best to enable the forced password policy for the password.

 

Then, in the database where you want to activate user permissions, find security-right-click-create-user

 

Enter the user name and select the user architecture and role. Here, select db-owner (with full permissions)

 

Finally, use the Account link

 

If you click another database, you will be prompted that you do not have permission

 

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.