Internet of Things Application Technology Competition - Adding New User Mapping to the Database

Use the sa account to log in to the database on the server computer to complete the
addition of the new retail store database and smart municipal database. Note: If these two databases are not added successfully, some subsequent tasks will be affected.
Create a new user named "dbUser" + [two-digit workstation number] in the database on the server computer, with a
password of 123456. For example: Workstation 08, the new user name is dbUser08. Please map the newly added database user to the new retail store database and add the db_owner role.

1. Create a new user dbUser08 (now in sa user login)
Insert image description here
Insert image description here
2. Add the user to map to the new retail store database and add the db_owner role
Insert image description here
3. Log in to the new user, you can see that only the system database and new retail can be seen in this user The store database cannot see the municipal database.
Insert image description here
Insert image description here
If you want to delete a self-created user, you must first delete the user name in the database, and then delete the login name. The order cannot be reversed.

Guess you like

Origin blog.csdn.net/sger123/article/details/120281861