0% found this document useful (0 votes)
2 views29 pages

Lab - Dbs

The document provides a step-by-step guide for installing and configuring SQL Server on Windows, including downloading, selecting installation options, and configuring the database engine. It also covers user management, such as creating new login users, granting privileges, and managing table permissions. Additionally, it discusses decentralization in SQL Server by creating users and assigning permissions to access specific databases and tables.

Uploaded by

longvhse161288
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views29 pages

Lab - Dbs

The document provides a step-by-step guide for installing and configuring SQL Server on Windows, including downloading, selecting installation options, and configuring the database engine. It also covers user management, such as creating new login users, granting privileges, and managing table permissions. Additionally, it discusses decentralization in SQL Server by creating users and assigning permissions to access specific databases and tables.

Uploaded by

longvhse161288
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 29

II. Installing and configuring.

Installing and configuring on Windows:

Step 1: Run Installed Application


Step 2: Select Custom Installation

Specify a directory where SQL Server will store files downloaded for installation.
Be patient as the download begins, it may take some time.

Step 3: Choose Installation


Step 4: Choose New SQL Server standalone

Step 5: Specify Edition


Step 6: Accept License Terms

Step 7: Microsoft Update


Step 8: Install Rules

Step 9: Feature Selection


Step 10: Instance Configuration

Step 11: Server Configuration


Step 12: Configure Database Engine Parameters

Step 15: Ready to Install


Step 16: Finish up

Step 17 Download and install SSMS


Step 18 It gives below message to restart the system to complete setup

Step 19 Try to Connect to SQL Server


SQL SERVER 2019 ADMINTRATOR Using query to modify user

Step 1: Open new query page with File > New > Query with current connection ( or press ctrl +
N

Step2: To create new Login User, use this query:


Step 3: Highlight words and press F5 to run the script

Step 4:
Step 5: SQL Server use user to grant priviledges, use these query to add new user for assign
priviledges later:

Step 6: To create new table, use these query:


Step7: Insert new row in table:

Step 8: Update on SQL Server with existing value


Step 9: Grant permission to access table for each user in SQL SERVER
Step 10: To connect to SQL with cmd, use this command:
Create a new one and Name for database
Create a new Table
Name for Table

6. Press Refresh to check the table you just create


II. Insert, Delete, Update Table trong SQL Server
1. Thêm dữ liệu vào bảng vừa tạo

2. Xóa dữ liệu trong bảng


3. Update Infomation
III. Decentralization in sql server

1. Create 3 Users : Teacher 1, Teacher 2, Teacher 3


2. Right-click Teacher1 and select Properties. The screen below will appear

3. Choose User Mapping and select Database for User. Then select the authority you want to
grant that user in the last box
4. Do the same for Teacher2 and Teacher3.
IV. Decentralization in Table

1. Decentralized for table. Select the table you want to assign and click properties

2. The dialog box pops up as follows. Click on search.


3. Check the user you want to grant permission and click ok to appy.

Grant the FRS401 read-only permission to teacher1 and block the right to view information with
teacher3
6. Sign out and try to log in again with each account.

You might also like