Microsoft Azure SQL Database 中的 Copilot (預覽版)
適用於:Azure SQL 資料庫
Microsoft Azure Copilot 現在已與 Azure SQL 資料庫整合,增強了 SQL 相依應用程式的管理和作業。 它藉由提供資料庫管理的自助服務,改善 Azure 入口網站中的生產力。
Copilot 提供使用者問題的相關解答,藉由套用資料庫內容、文件、動態管理檢視、查詢存放區和其他知識來源來簡化資料庫管理。 例如:
資料庫管理員可以獨立管理資料庫並解決問題,或深入了解資料庫的效能和功能。
開發人員可以詢問有關資料的問題,就像在文字或對話中一樣,以產生 T-SQL 查詢。 透過所產生查詢的詳細說明,開發人員還可了解如何快速撰寫查詢。
Microsoft Copilot 在 Azure 的整合:這項體驗將 Azure SQL 資料庫技能新增到 Microsoft Azure 中的 Copilot,提供自我引導協助,賦能客戶能夠獨立管理其資料庫並解決問題。
Copilot 會整合資料,並使用公用文件、動態管理檢視、目錄檢視和 Azure 可支援性診斷來制定適用的回應。
在您的 Azure 租用戶中啟用 Copilot
如需有關啟用 Microsoft Copilot 的資訊,請參閱 Microsoft Copilot for Azure(預覽版)。
Azure 案例中的 Copilot
您可以在 Azure 入口網站內向 Microsoft Azure Copilot 詢問並接收實用且內容豐富的建議。
Microsoft Azure Copilot 是一組由大型語言模型 (LLMs) 提供的預覽體驗。 Copilot 所產生的輸出可能包含錯誤、偏差或其他非預期內容。 如同任何生成式 AI 模型,人類應該先檢閱 Copilot 所產生的輸出,再使用。
Microsoft Azure Copilot 的一些範例案例:
當您使用緩慢的 Azure SQL 資料庫時,您可以提供提示
My database is slow
。Microsoft Azure Copilot(預覽版)會根據您的 Azure 入口網站內容開始查看您的資料庫。 檢查之後,Copilot 會詳細說明可能導致此問題的特定區域。 在此範例中,有一個導致高 CPU 利用率的特定查詢:
您可以使用提示
How can I tune that high CPU query?
繼續進行對話和調查。Copilot 明白這個提示是指先前識別出的查詢,並提供一個新的索引建議:
範例提示
您可以為不同功能區域提供 Microsoft Azure Copilot 的提示,例如:
技能名稱 | 技能描述 | 範例提示 |
---|---|---|
作用中的使用者連線 | 顯示資料庫活躍的使用者連線。 | Who are currently actively connected to the database? |
反模式查詢分析 | 識別具有反模式的查詢,及其對效能的潛在影響。 | Show me all the queries in my workload that have anti-patterns in them. |
自動調整分析 | 調查自動調校故障及其潛在的解決方案。 | Why is automatic plan correction failing? |
基本資料庫資訊 | 擷取關於資料庫的基本資訊。 | What is the name of the logical server for this database? |
封鎖連線分析 | 識別及分析阻塞會話。 | Check top blocking sessions. |
相容性層級 | 提供資料庫相容性層級的相關資訊。 | What's the compatibility level of this database? |
產生連接字串 | 為資料庫產生適當的連接字串。 | Which connection string should I use to connect to my DB? |
副手輔助說明 | 提供 Azure SQL 的一般協助和指導。 | What can you do related to Azure SQL? |
資料同步處理分析 | 針對資料同步問題進行疑難排解,特別是次要方面的問題。 | Why do my secondaries not have the latest data? |
資料庫和資料表大小 | 提供資料庫和資料表大小的相關資訊。 | What's the size of this database? |
資料庫效能分析 | 分析整體資料庫效能,並建議改善方式。 | Why is my database slow? |
資料庫權限清單 | 列出使用者資料庫權限和存取層級。 |
Which users have access to 大師 database? |
死結分析 | 調查死結並提出解決方案建議。 | Why am I getting deadlock errors? How can I fix it? |
中斷連線分析 | 調查資料庫連線中斷的情況。 | Show me all the instances where my database had a dropped connection. |
片段索引分析 | 識別片段索引及其對效能的影響。 | Help me find fragmented indexes. |
一般反模式資訊 | 提供常見 SQL 反模式的一般資訊。 | What are the most common SQL antipatterns? |
取得伺服器的資料庫名稱 | 列出特定伺服器上的所有資料庫。 | List all the databases on this server. |
高 CPU 消耗的查詢分析 | 識別和分析高 CPU 使用量的查詢。 | Why is the CPU usage high on this database? |
高 I/O 疑難排解 | 檢查資料庫是否發生高 I/O。 | Is my database experiencing high I/O? |
索引清單 | 顯示資料庫中的所有索引。 | What are all the indexes? |
特定資料表的索引建議 | 提供一或多個資料表的索引建議。 | Should I add an index on this table? |
最新的備份資訊 | 提供最新資料庫備份的相關資訊。 | When was the most recent backup of my database created? |
儲存空間不足疑難排解 | 提供建議,以釋放資料庫中的空間。 | Is there a way I can free up space in my database? |
MAXDOP 最佳化 | 分析並建議 MAXDOP 設定的最佳化。 | What's the current MAXDOP and how to optimize? |
記憶體授與分析 | 分析記憶體授與問題和潛在原因。 | Why am I having memory grant issues? |
遺漏索引建議 | 建議遺漏索引,提升查詢效能。 | Missing index suggestion for improving query performance? |
時間點還原保留 | 提供關於時間點恢復保留期間的相關資訊。 | How far back in time can I go for a point-in-time restore? |
資料庫查詢效能分析 | 調查緩慢執行的查詢並提出解決方案。 | Why is this query running so slow? |
查詢儲存庫 - 尋找強制計劃 | 在指定的時間範圍內顯示具有強制計劃的查詢。 | Show me all the queries from the past 2 days that have forced plans. |
查詢存放區 - 尋找高執行時間變化 | 識別執行時間變化高的查詢。 | Which queries on my database have a high variation in execution time? |
查詢存放區 - 尋找最高的 I/O 查詢 | 顯示具有最高 I/O 使用量的查詢。 | What queries on this database use the most I/O? |
查詢存放區 - 根據 ID 取得查詢文字 | 根據提供的查詢 ID 顯示查詢文字 | What is the query text for Query ID 1333? |
查詢存放區 - 最新執行的查詢 | 顯示最近執行的查詢。 | What are the most recently executed queries in my database? |
查詢存放區 - 執行時間最長的查詢 | 顯示指定時間範圍內執行時間最長的查詢。 | What are the longest running queries in the past day? |
查詢存放區 - 等候時間最長的查詢 | 識別等候時間最長的查詢。 | Which queries have had the highest wait times? |
查詢存放區 - 具有多項方案的查詢 | 檢查具有多項執行方案的查詢。 | Show me the queries that have had more than one execution plan. |
查詢存放區 - 迴歸查詢 | 識別效能退化的查詢。 | Have any of my queries gotten significantly slower recently? |
查詢存放區 - 具有方案變更的迴歸查詢 | 顯示執行計畫變更且效能有所退步的查詢。 | Are there any queries that had plan changes and regressed in performance? |
查詢存放區 - 顯示每個查詢的執行次數 | 顯示每項查詢的執行次數。 | What queries are being executed most often? |
查詢存放區 - 資源消耗最多的查詢 | 識別和分析資源使用量最高的查詢。 | What are the most expensive queries in my workload? |
查詢存儲模式故障排除 | 我們調查處於唯讀模式的查詢儲存庫並提供解決方案。 | Why is Query Store in read-only mode? How can I fix it? |
相關文件 | 根據使用者的查詢提供相關文件連結。 | What does database compatibility level mean? |
資源使用狀況分析 | 分析資源使用狀況和潛在瓶頸。 | Is the database hitting resource limits? Which limits? |
表格清單 | 列出資料庫中的所有資料表。 | What are the names of all the tables? |
針對錯誤 18456 進行疑難排解 | 協助解決 SQL 錯誤 18456。 | Help me with SQL error 18456 |
針對錯誤 40615 進行疑難排解 | 協助解決 SQL 錯誤 40615。 | Help me with SQL error 40615 |
針對連線錯誤進行疑難排解 | 檢查連線逾時的可能原因。 | Check for causes of connection timeouts in my database |
針對登入失敗進行疑難排解 | 診斷登入失敗問題。 | Why can't I login to my database? |
針對查詢逾時進行疑難排解 | 解決查詢逾時問題。 | Help me with query timeout issues |
等候統計分析 | 分析等候統計資料和潛在的效能瓶頸。 | What do the wait statistics look like for my database? |
工作負載增加和縮放分析 | 評估工作負載增加和潛在縮放需求。 | Has increased workload or traffic caused performance issues? |
負責任的人工智慧
如需 Microsoft 如何在 Microsoft Azure Copilot 中實作負責任 AI 工具的更多資訊,請參閱適用於 Microsoft Azure Copilot 的負責任 AI 常見問題(預覽版)。
相關內容
- Azure 中的 Microsoft Copilot 概觀
- Azure SQL 資料庫中的 Microsoft Copilot 技能(預覽版)的常見問題
- 使用 Azure SQL 資料庫的智慧型應用程式