

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# Amazon RDS for Microsoft SQL Server 的函數和預存程序
<a name="SQLServer.Concepts.General.StoredProcedures"></a>

在下文中，您可以找到可協助自動化 SQL Server 任務的 Amazon RDS 函數和預存程序清單。



- **管理任務**
  - **程序或函數:** `rds_drop_database` / **其使用位置:** [在 Amazon RDS for Microsoft SQL Server 資料庫執行個體中捨棄資料庫](Appendix.SQLServer.CommonDBATasks.DropMirrorDB.md)
  - **程序或函數:** `rds_failover_time` / **其使用位置:** [判斷 Amazon RDS for SQL Server 的上次容錯移轉時間](Appendix.SQLServer.CommonDBATasks.LastFailover.md)
  - **程序或函數:** rds\_manage\_view\_db\_permission / **其使用位置:** [拒絕或允許檢視 Amazon RDS for SQL Server 的資料庫名稱](Appendix.SQLServer.CommonDBATasks.ManageView.md)
  - **程序或函數:** `rds_modify_db_name` / **其使用位置:** [重新命名多可用區域部署中的 Amazon RDS for Microsoft SQL Server 資料庫](Appendix.SQLServer.CommonDBATasks.RenamingDB.md)
  - **程序或函數:** `rds_read_error_log` / **其使用位置:** [檢視錯誤和代理程式日誌](Appendix.SQLServer.CommonDBATasks.Logs.md#Appendix.SQLServer.CommonDBATasks.Logs.SP)
  - **程序或函數:** `rds_set_configuration` / **其使用位置:** 此操作用於設定各種資料庫執行個體組態：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/AmazonRDS/latest/UserGuide/SQLServer.Concepts.General.StoredProcedures.html)
  - **程序或函數:** `rds_set_database_online` / **其使用位置:** [將 Amazon RDS for SQL Server 資料庫從「離線」轉移至「線上」](Appendix.SQLServer.CommonDBATasks.TransitionOnline.md)
  - **程序或函數:** `rds_set_system_database_sync_objects`<br />`rds_fn_get_system_database_sync_objects`<br />`rds_fn_server_object_last_sync_time` / **其使用位置:** [開啟 SQL Server Agent 任務複寫](Appendix.SQLServer.CommonDBATasks.Agent.md#SQLServerAgent.Replicate)
  - **程序或函數:** `rds_show_configuration` / **其使用位置:** 若要查看使用 `rds_set_configuration` 設定的值，請參閱以下主題：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/AmazonRDS/latest/UserGuide/SQLServer.Concepts.General.StoredProcedures.html)
  - **程序或函數:** `rds_shrink_tempdbfile` / **其使用位置:** [縮減 tempdb 資料庫](SQLServer.TempDB.Shrinking.md)

- **變更資料擷取 (CDC)**
  - **程序或函數:** `rds_cdc_disable_db` / **其使用位置:** [停用 CDC](Appendix.SQLServer.CommonDBATasks.CDC.md)
  - **程序或函數:** `rds_cdc_enable_db` / **其使用位置:** [啟用 CDC](Appendix.SQLServer.CommonDBATasks.CDC.md)

- **資料庫郵件**
  - **程序或函數:** `rds_fn_sysmail_allitems` / **其使用位置:** [檢視郵件、記錄檔和附件](SQLServer.DBMail.View.md)
  - **程序或函數:** `rds_fn_sysmail_event_log` / **其使用位置:** [檢視郵件、記錄檔和附件](SQLServer.DBMail.View.md)
  - **程序或函數:** `rds_fn_sysmail_mailattachments` / **其使用位置:** [檢視郵件、記錄檔和附件](SQLServer.DBMail.View.md)
  - **程序或函數:** `rds_sysmail_control` / **其使用位置:** 此操作用於啟動和停止郵件佇列：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/AmazonRDS/latest/UserGuide/SQLServer.Concepts.General.StoredProcedures.html)
  - **程序或函數:** `rds_sysmail_delete_mailitems_sp` / **其使用位置:** [刪除訊息](SQLServer.DBMail.Delete.md)

- **原生備份與還原**
  - **程序或函數:** `rds_backup_database` / **其使用位置:** [備份資料庫](SQLServer.Procedural.Importing.Native.Using.md#SQLServer.Procedural.Importing.Native.Using.Backup)
  - **程序或函數:** `rds_cancel_task` / **其使用位置:** [取消任務](SQLServer.Procedural.Importing.Native.Using.md#SQLServer.Procedural.Importing.Native.Using.Cancel)
  - **程序或函數:** `rds_finish_restore` / **其使用位置:** [完成資料庫還原](SQLServer.Procedural.Importing.Native.Using.md#SQLServer.Procedural.Importing.Native.Finish.Restore)
  - **程序或函數:** `rds_restore_database` / **其使用位置:** [還原資料庫](SQLServer.Procedural.Importing.Native.Using.md#SQLServer.Procedural.Importing.Native.Using.Restore)
  - **程序或函數:** `rds_restore_log` / **其使用位置:** [還原日誌](SQLServer.Procedural.Importing.Native.Using.md#SQLServer.Procedural.Importing.Native.Restore.Log)

- **Amazon S3 檔案傳輸**
  - **程序或函數:** `rds_delete_from_filesystem` / **其使用位置:** [刪除 RDS 資料庫執行個體上的檔案](Appendix.SQLServer.Options.S3-integration.using.deleting-files.md)
  - **程序或函數:** `rds_download_from_s3` / **其使用位置:** [將 Amazon S3 儲存貯體中的檔案下載至 SQL Server 資料庫執行個體](Appendix.SQLServer.Options.S3-integration.using.md#Appendix.SQLServer.Options.S3-integration.using.download)
  - **程序或函數:** `rds_gather_file_details` / **其使用位置:** [列出 RDS 資料庫執行個體上的檔案](Appendix.SQLServer.Options.S3-integration.using.listing-files.md)
  - **程序或函數:** `rds_upload_to_s3` / **其使用位置:** [從 SQL Server 資料庫執行個體將檔案上傳至 Amazon S3 儲存貯體](Appendix.SQLServer.Options.S3-integration.using.md#Appendix.SQLServer.Options.S3-integration.using.upload)

- **Microsoft Distributed Transaction Coordinator (MSDTC)**
  - **程序或函數:** `rds_msdtc_transaction_tracing`
  - **其使用位置:** [使用交易追蹤](Appendix.SQLServer.Options.MSDTC.md#MSDTC.Tracing)

- **SQL Server 稽核**
  - **程序或函數:** `rds_fn_get_audit_file`
  - **其使用位置:** [檢視稽核日誌](Appendix.SQLServer.Options.Audit.AuditRecords.md)

- **透明資料加密**
  - **程序或函數:** `rds_backup_tde_certificate`<br />`rds_drop_tde_certificate`<br />`rds_restore_tde_certificate`<br />`rds_fn_list_user_tde_certificates`
  - **其使用位置:** [支援 SQL Server 的透明資料加密](Appendix.SQLServer.Options.TDE.md)

- **Microsoft Business Intelligence (MSBI)**
  - **程序或函數:** `rds_msbi_task` / **其使用位置:** 此操作搭配 SQL Server Analysis Services (SSAS) 一起使用：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/AmazonRDS/latest/UserGuide/SQLServer.Concepts.General.StoredProcedures.html)<br />此操作也搭配 SQL Server Integration Services (SSIS) 一起使用：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/AmazonRDS/latest/UserGuide/SQLServer.Concepts.General.StoredProcedures.html)<br />此操作也搭配 SQL Server Reporting Services (SSRS) 一起使用：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/AmazonRDS/latest/UserGuide/SQLServer.Concepts.General.StoredProcedures.html)
  - **程序或函數:** `rds_fn_task_status` / **其使用位置:** 此操作顯示 MSBI 任務的狀態：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/AmazonRDS/latest/UserGuide/SQLServer.Concepts.General.StoredProcedures.html)

- **SSIS**
  - **程序或函數:** `rds_drop_ssis_database` / **其使用位置:** [卸除 SSISDB 資料庫](SSIS.DisableDrop.md#SSIS.Drop)
  - **程序或函數:** `rds_sqlagent_proxy` / **其使用位置:** [建立 SSIS 代理](SSIS.Use.md#SSIS.Use.Proxy)

- **SSRS**
  - **程序或函數:** `rds_drop_ssrs_databases`
  - **其使用位置:** [刪除 SSRS 資料庫](SSRS.DisableDelete.md#SSRS.Drop)

- **資源管理員**
  - **程序或函數:** `rds_create_resource_pool` / **其使用位置:** [建立資源集區](ResourceGovernor.Using.md#ResourceGovernor.CreateResourcePool)
  - **程序或函數:** `rds_alter_resource_pool` / **其使用位置:** [變更資源集區](ResourceGovernor.Using.md#ResourceGovernor.AlterResourcePool)
  - **程序或函數:** `rds_drop_resource_pool` / **其使用位置:** [捨棄資源集區](ResourceGovernor.Using.md#ResourceGovernor.DropResourcePool)
  - **程序或函數:** `rds_create_workload_group` / **其使用位置:** [建立工作負載群組](ResourceGovernor.Using.md#ResourceGovernor.CreateWorkloadGroup)
  - **程序或函數:** `rds_alter_workload_group` / **其使用位置:** [修改工作負載群組](ResourceGovernor.Using.md#ResourceGovernor.AlterWorkloadGroup)
  - **程序或函數:** `rds_drop_workload_group` / **其使用位置:** [捨棄工作負載群組](ResourceGovernor.Using.md#ResourceGovernor.DropWorkloadGroup)
  - **程序或函數:** `rds_create_classifier_function` / **其使用位置:** [建立和註冊分類器函數](ResourceGovernor.Using.md#ResourceGovernor.ClassifierFunction)
  - **程序或函數:** `rds_drop_classifier_function` / **其使用位置:** [捨棄分類器函數](ResourceGovernor.Using.md#ResourceGovernor.DropClassifier)
  - **程序或函數:** `rds_alter_resource_governor_configuration` / **其使用位置:** [資源長組態變更](ResourceGovernor.Using.md#ResourceGovernor.ConfigChanges)
  - **程序或函數:** `rds_bind_tempdb_metadata_to_resource_pool` / **其使用位置:** [將 TempDB 繫結至資源集區](ResourceGovernor.Using.md#ResourceGovernor.BindTempDB)
  - **程序或函數:** `rds_unbind_tempdb_metadata_from_resource_pool` / **其使用位置:** [從資源集區取消繫結 TempDB](ResourceGovernor.Using.md#ResourceGovernor.UnbindTempDB)
  - **程序或函數:** `rds_cleanup_resource_governor` / **其使用位置:** [清理資源總監](ResourceGovernor.Using.md#ResourceGovernor.Cleanup)

