tencent cloud

TencentDB for SQL Server

Release Notes and Announcements
Release Notes
Product Announcements
User Guide
Product Introduction
Overview
Product Architecture
Strengths
Use Cases
Regions and AZs
Major Version Lifecycle Explanation
Features and Differences
Instance Types
Instance Specifications
Storage Types
Common Concepts
Network Environment
License Statement
Purchase Guide
Billing Overview
Product Pricing
Purchase Methods
Renewal Instructions
Payment Overdue
Refund
From Pay-as-You-Go to Monthly Subscription
Instance Adjustment Fees Description
Local Backup Space Billing
Cross-Region Backup Billing
Viewing Bill Details
Getting Started
Creating TencentDB for SQL Server Instance
Connecting to TencentDB for SQL Server Instance
Managing TencentDB for SQL Server Instance
Operation Guide
Constraints and Limits
Usage Specifications and Suggestions
Maintaining Instance
Adjusting Instance Configuration
Read-Only Instance
Network and Security
Account Management
Database Management
Data Security
Parameter Configuration
Monitoring and Alarms
Backup and Restoration 
Log Management
Publish-Subscribe
SSIS
Data Migration (New)
Data Migration (Legacy)
Data Synchronization (DTS) 
Practical Tutorial
TencentDB for SQL Server Methods for Regular Maintenance
TencentDB for SQL Server Optimization of Slow SQL
How to Better Use Tempdb
Cross-Account Backup Restoration
Creating VPC for TencentDB for SQL Server
Connecting Kingdee K/3 WISE to TencentDB for SQL Server
Account Permissions and Permission Control
Enabling and Disabling the CDC Feature
Shrinking a Database
API Documentation
History
Introduction
API Category
Making API Requests
Sales and fee related APIs
Instance Management related APIs
Operation and maintenance management related APIs
Network management related APIs
Account management related APIs
Database management related APIs
Security group management related APIs
Data security encryption related APIs
Parameter configuration related APIs
Extended Event related APIs
Log management related APIs
Read only instance management related APIs
Publish and subscribe related APIs
Backup related APIs
Rollback related APIs
Data migration (cold standby migration) related APIs
SQL Server Integration Services (SSIS) related APIs
Data migration (DTS old version) related APIs
Data Types
Error Codes
FAQs
Overview
Model Selection
Pricing and Selection
Connection and Network
Account and Permission
Backup and Rollback
Data Migration
Publish/Subscribe
Read-Only Instance
Version and Architecture Upgrade
Disk Space and Specification Adjustment
Monitoring and Alarms
Log-Related
Parameter Modification
Features
Performance, Space, and Memory-Related FAQs
Service Agreement
Service Level Agreement
Terms of Service
Performance Evaluation
Performance Test Report
Glossary
Contact Us

Modifying Account Permissions

PDF
Focus Mode
Font Size
Last updated: 2025-08-27 17:40:17

Scenarios

TencentDB for SQL Server instances support granting, modifying, or revoking operation permissions for different accounts on databases or tables after accounts are created.
The operations to set database/table permissions supported by different types of accounts are as follows.
Account Type
Operation to Set Database Permissions
Operation to Set Table Permissions
Standard account
Supported
Supported
Privileged account
Not supported. Privileged accounts have owner permissions for all databases by default. There is no need to set database permissions separately.
Supported
Admin account
Not supported. Admin accounts have the highest sysadmin management permission and have owner permissions for all databases by default. There is no need to set database permissions separately.
Not supported
Designated account
Supported
Not supported

Prerequisites

Permission Description

Permission Level
Permission
Description
Database permission
Owner
Server-level role:
processadmin
dbcreator
Database-level role:
db_owner
Read-write
Server-level role:
processadmin
dbcreator
Database-level role:
db_reader
db_writer
Read-Only
Server-level role:
processadmin
dbcreator
Database-level role:
db_reader
Table permission
INSERT
Insert the data.
UPDATE
Update the data.
VIEW DEFINITION
View the definition.
VIEW CHANGE TRACKING
View change tracking records.
UNMASK
Remove the mask.
ALTER
Modify the table structure and attributes.
TAKE OWNERSHIP
Take over the ownership.
CONTROL
Full control permission for a table.
DELETE
Delete the data.
SELECT
Query the data.
REFERENCES
Reference permission. A table should be referenced when a foreign key is created.

Database Permission Setting

Setting database permissions for an account means granting database-level permissions to the account.
When you create an account, if the database permissions have already been set for the account, you can modify or revoke these permissions by following the steps below. If no database permissions are set for the account, you can grant database-level permissions after account creation by following the steps below. You can also follow the steps below to modify or revoke permissions after authorization.
1. Log in to the TencentDB for SQL Server console and click Instance ID or Manage in the Operation column of the instance list to enter the instance management page.
2. On the instance management page, select the Account Management page, select the target account, and click Set Database Permission in the Operation column.

Note:
You can select multiple accounts in the account list and choose Batch Management > Batch Reset Database Permissions above to modify database permissions in batches.
3. In the pop-up dialog box, set permissions as needed and click OK.
Operations that can be performed in the dialog box are as follows:
Selecting the databases to be authorized: The database list on the left displays unselected databases. You can select one or multiple databases to be authorized, or select Unauthorized Database to select all such databases in one click. You can click

to sort the databases by the first letter of database names (in ascending or descending order). After selecting databases to be authorized, you can set permissions in the database list on the right, including read-write, read-only, and owner.
Revoking database authorization: The database list on the right displays authorized databases. If you need to revoke authorization, click the cross sign next to the target database.
Modifying permissions on authorized databases: In the database list on the right, you can modify permissions on authorized databases. For example, change from read-write to read-only or from read-only to owner.

Table Permission Setting

Setting table permissions for an account means granting table-level permissions to the account.
1. Log in to the TencentDB for SQL Server console and click Instance ID or Manage in the Operation column of the instance list to enter the instance management page.
2. On the instance management page, select the Account Management page, select the target account, and choose More > Set Table Permissions in the Operation column.

Note:
The account type in Step 2 is standard account. If the account type is privileged account, the operation is as follows: Click Set Table Permissions in the Operation column.
3. In the pop-up dialog box, select the table for setting table permissions, set permissions, and click Next.
Operations that can be performed in the dialog box are as follows:
Filtering: In a database, you can enter a table name for quick filtering.
Batch authorization: You can click Batch Authorize to select tables in batches and set permissions for these tables uniformly.
Clearing and exiting batch authorization: After clicking Batch Authorize, you can perform this operation to clear selected tables and set permissions in one click and return to the initial permission settings page before confirming the current permission settings.
Reset: You can click Reset to reset table permissions. After the reset, you can perform permission settings again as needed.
Permission settings: Multiple operations can be performed on tables, such as INSERT and DELETE. You can set permissions for each operation (including granting, granting and allowing further granting, or denying).
Modifying or revoking permissions: To modify or revoke set permissions for a table, you can locate the target table and then reselect permissions during permission settings or deselect the set permissions.
4. After setting the permissions, enter SQL Preview to preview all table permissions granted to the current account this time. If modifications are needed, click Previous to make modifications. To revoke this authorization, click Revoke.
5. After confirming that everything is correct, click Confirm to complete the current settings.

Related APIs

API
Description
This API is used to modify instance account permissions.

Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback