Professional Documents
Culture Documents
1. Login Name
2. Select SQL Server authentication
3. Enter Password
4. Click Ok
Login is created
5.
Using T-SQL
Using SQL Server Management Studio
Create User using SQL Server Management Studio
You will be creating a user for the EDU_TSQL database.
1. Connect to SQL Server then expand the Databases folder from the
Object Explorer.
2. Identify the database for which you need to create the user and expand
it.
3. Expand its Security folder.
4. Right-click the Users folder then choose "New User…"
Note: That the query should be executed within the query window. If a user is
already created for a Login, SQL Server will throw an error if you create a user
for the same login.
Using T-SQL
Using SQL Server Management Studio
Step 4)
7. use <database-name>
8. grant <permission-name> on <object-name> to <username\principle>
9. For example, the following command shows how you can grant the
select permission to the user Guru99 on the object (table)
named Course within the Database EDU_TSQL: