How to decentralize users in MS SQL Server
To decentralize, use 1 of 2 ways.
Method 1: Use T-SQL
Use <database name>
Grant <permission name> on <object name> to <usernameprinciple>
For example:
To authorize the user named TestUser on the object TestTable on the database named TestDB, run the following query.
USE TestDB
GO
Grant select on TestTable to TestUser
Method 2: Use SQL Server Management Studio SSMS
Step 1 : Connect to the database, expand the directory as shown in the image below.
Open the Security> Users folder and find the username you want to decentralize
Step 2 : Right-click TestUser and select Properties. The screen below will appear.
TestUser user management screen
Step 3 : Use Search to search and then select the object you want to decentralize, here is the Table TestTable.
Step 4 : Click on the TestTable table , then select the Grant checkbox for the operations in the list below as shown in the image below. In this example, the right to select a table (Select) is given.
Tick select the authority box
Step 5 : Click OK to complete the authorization.
You should read it
- Network basics: Part 3 - DNS Server
- Find User in SQL Server
- How to start and stop services in MS SQL Server
- New points in SQL Server 2017
- SQL Server 2019 - Microsoft Relational Database Management System
- Learn about the architecture of MS SQL Server
- Instructions for installing MS SQL Server
- How to set up your own Git server on Linux
May be interested
- OR conditions in SQL Serverthe or condition in sql server (transact-sql) is used to check multiple conditions.
- Combine AND and OR conditions in SQL Serverthe article explains how to use and conditions and or conditions in sql server (transact-sql).
- DISTINCT clause in SQL Serverthe distinct clause is used to remove duplicates in the result set.
- Introduction to SQL Server Reporting Servicessql server 2005, 2008 and 2008 r2 software packages are pre-packaged with sql server reporting services (ssrs) - a specialized report creation solution for businesses. with ssrs, you can completely create, publish, and manage a huge number of reports from various data sources ...
- Instructions for creating and editing reports in SQL Server Reporting Servicessql server 2005, 2008 and 2008 r2 product suite, all packaged with sql server reporting services (ssrs) - a dedicated solution for creating reports for businesses. with ssrs, users can create, schedule, post and manage various reports from various sources of original data.
- SQL Server setup is always availabledatabase mirroring solution helps build a high-availability database management system in sql server which is quite simple and suitable for medium-sized and lower-level databases.