sysadmin. For operations that originally require elevated permissions, the platform provides a set of system stored procedures in the instance, which are exposed after internal permission control and security validation. After connecting to the instance through clients such as SSMS or database management tools (DMC), you can directly execute T-SQL to perform these operations on your own.Method | Operator | Scenario | Description |
Console | Administrator with Tencent Cloud account (including sub-account) permissions | Daily Ops, low-frequency operations, and changes that require visual confirmation. | Operations are controlled by CAM permissions, and change records can be queried in the console. |
TencentCloud API | Ops platforms and automation scripts | Batch instance management and integration with your own Ops system. | |
Stored procedure | DBAs, developers, and applications with database accounts | Complete operations within a database session; integrate with application release scripts and SQL Agent jobs; retain T-SQL Ops habits after migrating from self-managed SQL Server. | No Tencent Cloud account or API key is required. Only the database account needs the EXECUTE permission on the corresponding stored procedure. |
Category | Stored procedure | Feature Description | Database | User Manual |
Modifying the account password | tencentdb_ChangeLoginPassword | Self-service password change for SQL Server authentication logins (SQL Logins) without the sysadmin role. | master | |
Configuring instance parameters | sp_rds_configure | Set instance-level configuration parameters. Currently, 15 parameters are available. | master | |
Data import | TencentSp_DownloadFromCOS | Download files from Tencent Cloud Object Storage (COS) to a fixed local directory on the instance for subsequent import. It can also be used to clean up expired local files. | monitor | |
| TencentSp_BulkInsertFromFile | Import files downloaded to the local device into the specified user database table in batches via BULK INSERT. CSV, TSV, and format files are supported. | monitor | |
master and monitor are reserved for platform Ops use and may change with version updates, so do not rely on them in your business. Newly available stored procedures will be updated in this document accordingly.tencentdb_ChangeLoginPassword, which is suitable for scenarios where applications rotate passwords regularly or account owners change passwords on their own.sp_rds_configure, which can be executed directly in deployment scripts and has usage similar to sp_configure in self-built SQL Server.TencentSp_DownloadFromCOS to download the files, and then use TencentSp_BulkInsertFromFile to import them in batches.EXECUTE permission on the target stored procedure. For account permission details, see Account Types and Permissions.Stored procedure | Database | Call Method |
sp_rds_configure | master | If the name starts with sp_, SQL Server automatically resolves it in the master database, and it can be directly called in any database. |
tencentdb_ChangeLoginPassword | master | Execute USE master first, or use the three-part name master.dbo.tencentdb_ChangeLoginPassword. |
TencentSp_DownloadFromCOSTencentSp_BulkInsertFromFile | monitor | Execute USE monitor first, or use the three-part name monitor.dbo.<stored procedure name>. |
-- Method 1: For stored procedures starting with sp_ in the master database, call them directly from any databaseEXEC sp_rds_configure @config_name = N'max degree of parallelism', @config_value = 4;-- Method 2: Switch to the database where the stored procedure resides and then call itUSE master;EXEC dbo.tencentdb_ChangeLoginPassword @login = N'myapp_user', @new_password = N'<new password>';-- Method 3: Call using a three-part name without switching databasesEXEC monitor.dbo.TencentSp_DownloadFromCOS@BucketName = 'mybucket-1258888888',@FileName = 'data/sales_2024.csv',@Region = 'ap-guangzhou';
Could not find stored procedure is prompted during execution, use the following statement to check whether the stored procedure has been deployed on the current instance and whether the current account has EXECUTE permission:-- Query platform stored procedures in the master databaseSELECT name, create_date, modify_dateFROM master.sys.proceduresWHERE name IN (N'sp_rds_configure', N'tencentdb_ChangeLoginPassword');-- Query platform stored procedures in the monitor databaseSELECT name, create_date, modify_dateFROM monitor.sys.proceduresWHERE name LIKE N'TencentSp[_]%';-- Check the current account's execute permission on the stored procedure (1 means yes, 0 means no)SELECT HAS_PERMS_BY_NAME(N'master.dbo.tencentdb_ChangeLoginPassword', N'OBJECT', N'EXECUTE') AS can_execute;
Time | Stored procedure | Description |
2026-11 | sp_rds_configure | Added a stored procedure for configuring instance parameters, with 15 instance-level parameters available. |
2026-08 | tencentdb_ChangeLoginPassword | Added a stored procedure for changing account passwords, allowing users to change SQL Login passwords on their own. |
2026-06 | TencentSp_DownloadFromCOSTencentSp_BulkInsertFromFile | Added a stored procedure for importing data from COS in batches. |
Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan