web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Copilot Studio - Bot Extensibility
Suggested Answer

Azure SQL Knowledge Source with an On-Prem SQL Server

(0) ShareShare
ReportReport
Posted on by 8
I am looking to connect some On-Prem SQL tables to an agent I am building. When I select the Azure SQL knowledge source, my connections created in Power Automate came up. I can see data in the preview of the knowledge source, but when I ask questions to the agent, it cannot find the data I am looking for. I then ask the agent to just tell me anything it knows about the table I connected and it fails. Any ideas on how to get my On-Prem connection to work with the agent?
Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    52,851 Super User 2025 Season 2 on at
    Azure SQL Knowledge Source with an On-Prem SQL Server
     
    For onpremise you need the OnPremise Data Gateway so you can connect to the source.

    As for it not giving you answers this becomes a little more difficult because, it's not a table scanner so it's not just going to spam read your table, you need it to be able to Index your data unto itself so it can answer.
     
    if it fails to be able to index anything, even if the connector is able to connect, you will see zippo. 
     
    Are you using Gen AI etc and Agent Orchestration (all of which require some variation supporting RAG (ugg I hate that name)
     
    You may have to look into configuring your Topics and or Instructions to support fall back into a Tool that uses a Flow (Agent Flow or otherwise) that essentially runs a query to the data directly to answer.
     
    But just connecting isn't enough.
     
    For SQL Azure, it should (over time not instantly) index the data so you should be able to get answers, however it can depend on the number or rows, indexes, views you use I mean different things. You could also replicate your OnPremise to SQL Azure and it would work OOB (in theory it would)

    If these suggestions help resolve your issue, Please consider Marking the answer as such and also maybe a like.

    Thank you!
    Sincerely, Michael Gernaey
  • jamesalthoff Profile Picture
    8 on at
    Azure SQL Knowledge Source with an On-Prem SQL Server
     
    Thank you for your quick response!
     
    We do already have a gateway set up as I have been using this connection in Power Automate flows. 
    Yep, we are using Gen AI for responses in this agent. 
     
    Is there a way I can check if it is able to index the data? I feel like it has to be indexing at least some of the data since I can see rows in the preview of the knowledge source. 
     
    Right now, I don't have any topics configured as I want to try to get the agent to respond to natural language questions about the data (Similarly to Fabric Data Agents). 
     
    Thank you for your help!
     
    James

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Coming soon: forum hierarchy changes

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Copilot Studio

#1
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 321 Super User 2025 Season 2

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 252 Super User 2025 Season 2

#3
S-Venkadesh Profile Picture

S-Venkadesh 93 Moderator

Last 30 days Overall leaderboard

Featured topics