適用於: SQL Server 2017 (14.x) 及以後版本
Azure SQL Database Azure
SQL Managed Instance
Microsoft Fabric 中的 SQL 資料庫
傳回這個資料庫的自動微調模式。 如需可用選項,請參閱 ALTER DATABASE SET AUTOMATIC_TUNING (Transact-SQL)。
| 欄位名稱 | 數據類型 | Description |
|---|---|---|
| desired_state | smallint | 自動調整模式的預期狀態。 |
| desired_state_desc | nvarchar(60) | 自動調整所需作業模式的文字描述。 |
| actual_state | smallint | 表示自動調整模式的作業模式。 |
| actual_state_desc | nvarchar(60) | 自動調整實際作業模式的文字描述。 |
Permissions
需要 VIEW DATABASE STATE 權限。