Blog Post

SQL Server Blog
3 MIN READ

Announcing the preview of Copilot in SQL Server Management Studio (SSMS)

erinstellato's avatar
erinstellato
Icon for Microsoft rankMicrosoft
May 19, 2025

Copilot in SQL Server Management Studio (SSMS) is now available in preview

We are pleased to announce the preview of Copilot in SQL Server Management Studio (SSMS), now available as an optional component in SSMS 21 GA.  Copilot in SSMS includes the ability to write, document, explain, and fix T-SQL, as well as answer any questions you have about your SQL database. We know you have a lot of questions, let’s dive into the details!

What is Copilot in SSMS

Copilot in SSMS is an AI assistant for the SQL database administrator (DBA)…as well as the database developer, application administrator, and anyone and everyone who works in SSMS. Available when you need it – and hidden when you don’t – the primary purpose of Copilot in SSMS is to make you more efficient – answering your questions and helping you write, edit, and fix T-SQL.  Copilot in SSMS is more than a source code editor; it understands your SQL database using connection context and interacts with your database based on the questions you ask.

 

Screenshot of chat window for Copilot in SSMS

Why we created Copilot in SSMS

SSMS is the one-stop shop for connecting to all your SQL databases, and we want to help people be as efficient as possible.  The SSMS community of users includes DBAs, application and database developers, application administrators, and data engineers, to name a few.  There’s also a wide range of knowledge and experience across SSMS users.  There are DBAs new to SQL just trying to keep the lights on, and experts with over 25 years of SQL experience. Copilot in SSMS is not about replacing you as a person; it’s there to empower every data professional to be more capable and productive than they are today.  We know you want help writing and improving T-SQL, we want to help with that and make SQL become the easiest database to manage and develop against.

Security and privacy

We know companies are concerned about security and privacy, here’s what's important to understand:

  1. At present, Copilot in SSMS only supports endpoints in Azure OpenAI. There are numerous benefits inherent in this configuration, as detailed in the Responsible AI documentation for Azure OpenAI models.
  2. Copilot in SSMS does not capture or retain any prompts or responses, and it does not use them to train or re-train any models, as clearly outlined in the Data, privacy, and security for Azure OpenAI Service documentation.

Finally, you can review our Transparency Note for Copilot in SSMS for any remaining concerns.

Get started today with Copilot in SSMS

Copilot in SSMS is available today, May 19, 2025, when you install SSMS 21 GA using the Visual Studio Installer. 

Download SSMS 21 GA

During installation, select the AI Assistance workload on the Workload tab. After installation is complete, you’ll see the Copilot button on the toolbar when you open SSMS.  Selecting the button will launch a configuration window where you can enter the information for your Azure OpenAI resource. The documentation includes complete details for creating an endpoint and deployment in Azure OpenAI. If you don’t have an Azure subscription and want to give Copilot a try, you can create a free Azure account that includes a $200 credit to use in any way you like…such as creating resources in Azure OpenAI to use for Copilot in SSMS.

Next steps

We'll be back tomorrow with another post that includes example workflows for Copilot in SSMS and answers to any questions you have. We'll be monitoring the comments and look forward to your feedback!

Updated May 22, 2025
Version 3.0

18 Comments

  • Cheef87's avatar
    Cheef87
    Copper Contributor

    I was wondering if you might be able to give me some information regarding how this integration would work for a whole team. Would I just deploy the azure resources and then the same API key would be available to my entire team using just the one resource in azure?

     

    Furthermore, estimating cost is a bit confusing. It seems to be token based which are vague in definition (approx 4 english words??) I think that its a pay as you go purchasing model and just want to understand roughly the cost of asking a couple small questions might be. DB size < 1 tb

    • erinstellato's avatar
      erinstellato
      Icon for Microsoft rankMicrosoft

      Cheef87​ Our recommendation is to use Entra authentication (rather than an API key) for the AOAI resource, as it's a more secure option.  But, either way, you are correct in that you deploy the AOIA resources and then provide the endpoint and deployment (and API key if used) to the users.

      Cost estimation is tricky - we tried to use private preview to create cost estimates, but use was so varied that we didn't feel we had reliable data to share.  It is a pay-as-you-go model, versus a fixed amount, and the cost will depend on the number of prompts sent and the tokens used.  Token use will depend on the prompt - if you ask a simple question (what is the compat mode) that will use fewer tokens than if ask it to analyze performance of a query plan.  I understand that it would be nice to "know" a number, but like a lot of things, it depends - in this case on volume and token use.

      • Cheef87's avatar
        Cheef87
        Copper Contributor

        Thank you for the rapid response. We have entra configured so I will give it a shot setting it up for my team! So excited to have copilot in SSMS! I dont mind this being through Azure as opposed to through github like VS. In fact, it seems like it might be an easier way to grant and revoke access to team members and monitor costs. Thanks again.

  • Nick_H's avatar
    Nick_H
    Copper Contributor

    Oh sweet...no only can I NOT use it since I'm not paying for Azure,  I get to be reminded of that fact CONSTANTLY.  Way to go microsoft.  What other ways can you come up with to piss off your non-corporate developers?

     

    • erinstellato's avatar
      erinstellato
      Icon for Microsoft rankMicrosoft

      Hi Nick_H​ - if you uninstall the Copilot in SSMS workload (using the Visual Studio Installer), then you won't see these entries on the right-click menu in the editor.  As this feature is in Preview, we are taking feedback about what changes folks would like to see.  For example, if you want to use Copilot in SSMS with your GitHub Copilot license, please upvote this feedback item.

  • Nick_H's avatar
    Nick_H
    Copper Contributor

    WTF?  I have to pay for Azure to use this?  My co-pilot sub on GitHub doesn't work?   Seriously disappointed.   I don't NEED or WANT TO PAY for Azure.   Man I was so excited only to be dashed.   I still can't believe you guys decided this way the way to roll it out.  That said, I don't know why I'm surprised.  

    • erinstellato's avatar
      erinstellato
      Icon for Microsoft rankMicrosoft

      Nick_H​ Read your feedback out of order, but my other response still applies.  I appreciate your passion for wanting to use Copilot in SSMS, and I hear your frustration. If you would like to discuss further, let me know, I'm happy to set up time to talk with you directly.

  • azertity's avatar
    azertity
    Copper Contributor

    I have been waiting for monthes thinking that copilot integration would be github copilot and figuring now that it is not the case is such a disapointment ...
    Since github copilot is integrated to vs studio and vs code I don't understand this choice, I hope it will be swiflty be integrated to ssms🙏

  • Jorge_Torselli's avatar
    Jorge_Torselli
    Copper Contributor

    I have tried to connect SSMS 21 with Azure OpenAI following the instructions, but with several models (4.1, model-router, 4.0) give me the same error, error 400(Unknown model) I have tried several version and still same error, I don't think it's fully available in this version 21.0.1 of SSMS.... have tried with key without key, endpoint works fine in postman but not inside SSMS

     

      • Jorge_Torselli's avatar
        Jorge_Torselli
        Copper Contributor

        Yes, I have and same result... as you see on the screenshot, with gpt-4o, the region I did was East Us where the documentation says it's available.

        Just did moments ago to try, let me know if there is a channel to comment this so the comments don't go sideways on the intention fo the original post. Thanks for answering!! :)

  • RSullivan_'s avatar
    RSullivan_
    Copper Contributor

    I am paying for a GitHub Copilot, so that I can use it in Visual Studio and Visual Studio Code.  Will this subscription also cover SSMS?

    • erinstellato's avatar
      erinstellato
      Icon for Microsoft rankMicrosoft

      @RSullivan_ Copilot in SSMS only supports using Azure OpenAI resources currently, but we are aware of the interest in using GitHub Copilot subscriptions.  Please see: https://developercommunity.visualstudio.com/t/Copilot-in-SSMS-does-not-support-using-G/10907218