This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
This last November, we announced the preview of SQL database in Microsoft Fabric. To mark this milestone, we published a blog post providing an in-depth look at the query editor and its core functionalities - Tour the Query Editor in SQL database in Microsoft Fabric. Query Editor is designed to enhance productivity in writing, editing, and executing SQL queries to interact with databases and simplify management tasks like performance optimization.
In this blog we’ll delve into the Copilot integration for Query Editor. We'll start by getting a high-level understanding of what it is and why does it matter - Think of Copilot for SQL database in Fabric as an AI-powered assistant designed to support you regardless of your SQL expertise or role.
Here’s how Copilot can help:
Important note: Currently, some regions do not support Copilot for SQL databases in Fabric. However, efforts are underway to make this feature available across all Fabric region availability in January 2025.
Today, we are offering three key functionalities:
A_GIF_showing_a_user_clicking_the_Copilot_button_in_the_ribbon_which_opens_the_C
This creates a seamless, multi-turn experience where Copilot acts as a collaborative partner, helping you navigate complex database challenges and offering step-by-step solutions. You can also use the chat pane to learn more about standard SQL, query processing, database management features, and best practices. The Chat pane currently supports two primary skills:
Users can iterate on the generated SQL until they are satisfied with the results, then insert and execute the code directly within the SQL text editor.
A_GIF_demonstrating_a_user_asking_Copilot_to_generate_SQL_code_to_display_the_to
To ensure that Copilot generates accurate results, be as specific as possible when crafting your prompts. Clearly describe the information you're seeking, such as which columns you want to view, the types of aggregations needed, and any filtering criteria.
Sample prompts:
SQL Database in Fabric shares the same engine as Azure SQL Database, so most features are identical. Copilot currently references documentation from Azure SQL Database to provide answers to a wider range of questions. While we’re working to enhance Copilot's intelligence and reference more knowledge sources, carefully review answers based on Azure SQL Database documentation for any potential differences. For a deeper comparison, read Features comparison: Azure SQL Database and SQL database (preview) Additionally, we are working to expand support for additional database management skills, enabling you to receive self-guided assistance in monitoring your database performance. This will allow you to ask Copilot questions that involve system tables or dynamic management views (DMVs) and help you solve issues independently. For example, you could ask Copilot: "Why is my database slow?" or "How can I tune this high CPU query?"
We’d love to hear which skills would be most valuable to you. Feel free to submit your feedback or upvote suggestions from others. For ideas, you can refer to Microsoft Copilot skills and Azure SQL Database (preview).
-
A_GIF_showing_a_user_typing_code_to_rank_products_by_revenue_generated_with_Copi
Additionally, you can write a comment in plain text to inform Copilot about your request. Based on the comment, Copilot will generate a relevant code suggestion to assist you.
A_GIF_showing_a_user_writing_a_comment_starting_with_--_stating_that_the_code_is
You can enable or disable this feature in the database settings under the 'Show Copilot completions' option.
A_GIF_showing_a_user_clicking_the_Copilot_Completion_On_button_at_the_bottom_of
-
While Copilot may not be explicitly mentioned in some sections, it’s available in many places to enhance and accelerate these steps.
Here’s how you can leverage Copilot while you follow this tutorial:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.