Forum Discussion
Having Copilot agent talk to on-prem SQL and answer questions
1. Use Microsoft Power Platform as a bridge
Power Automate + Data Gateway
After creating an automated process with Power Automate that triggers a Copilot request:
Connect to SQL Server using On-Premises Data Gateway.
Execute the SQL query and return the results.
Format the results and pass them to Copilot to generate an answer.
Power Virtual Agents + Custom Connector
Create a Custom Connector that encapsulates the SQL query logic for Copilot to call. 2.
2. Integration via Azure Services
Azure Logic Apps + SQL Connector
Deploy Logic Apps in Azure to query data via SQL Server Connector and expose to Copilot via API.
Azure API Management (APIM)
Encapsulate the local SQL database into a REST API, manage access through APIM, and Copilot gets the data through API calls.
3. Use Semantic Kernel or Custom Plugin
Developing Copilot Plug-ins
Develop custom plug-ins using Microsoft Semantic Kernel or Teams message extensions to handle SQL query logic directly.
LLM Prompt Engineering Optimization
Enable Copilot to generate accurate SQL queries through Prompt Engineering and then execute them through intermediate services.
- NormanComsoftApr 14, 2025Copper Contributor
Hi, Can I ask you for details with Copilot or any official documentation ? I can't find the right connector for Onprem SQL Server with Copilot Studio