Experience 30 -- create a user in sqlserver and create a user in sqlserver
When it comes to database security issues, you should create a new user to connect to the database without using sa.
1. log on.
2. Security-Logon Name-right-click Create user.
3. General. Enter the login name, select authentication, enter the password, cancel the force password policy, and select the default database.
4. User ing. Select a database.
5. Status. Grant and enable.
6. Right-click instance-properties-security, and enable dual verification.
8. view database permissions. Only basic connection functions can be added.
Note: The user should have as few permissions as possible. after the project is completed, the user can only access the connection.
Once other permissions are involved, you can use the highest permissions for configuration.
SQL server2000 new user
Open Enterprise Manager-security-login-right-built (New login)-select (database access) in the pop-up dialog box, you can select the databases that the user accesses, after you select a database, you can select the corresponding attributes. Generally, you can simply select DB_OWNER.
Sqlserver2005 New User Name
After logging in
Security ---> Login Name (right-click) ----> New Login Name ----->
GENERAL: Select SQL server Authentication...
Server role: Select sysadmin
User ing: select the database you want to associate with. The permissions are given below. Generally, all permissions are selected from db_owner and public ..