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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / SQL Server how to run ...
Copilot Studio
Unanswered

SQL Server how to run a select statement in PVA and power automate

(0) ShareShare
ReportReport
Posted on by 15

Hi guys,

 

I am looking for guidance on what is the best approach to using SQL Server, and the best approach to configure a flow in order to do CRUD operations.

I have connected my database to power automate and its working.

I now want to create a query to select who is my head of team as a test.

I am not sure how to build the flow using the SQL connectors and what is needed.

 I have attempted using execute query only to realize it doesn't work with SQL server.

 

Please help, currently all methods I have tried/ google have just confused me more. 

 

Thank you,

 

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    69,042 Most Valuable Professional on at

    Invoke a Power Automate flow to execute the SQL Query and return the results in a format the bot can use.  There is a specific action you can use in a flow to execute a SQL query.  You can even include one or more named parameters.  When the results are returned you will need to format them as a string to return them to the BOT.  If you need to return a table of data check out the markdown characters available.  Format your bot messages - Teams | Microsoft Docs

    image.png

  • SwapnaNalimela Profile Picture
    2 on at

    Hi Team,

     

    while integrating Azure SQL to PVA i'm facing with below error, could anyone please help me to sort out this issue. and i am unable to load my table details in the table name field.

    Screenshot 2023-05-04 123240.png
  • HenryJammes Profile Picture
    Microsoft Employee on at

    Hi @SwapnaNalimela, can you check and fix the connection used by the SQL connector, clicking on the "...", like this?

     

    HenryJammes_0-1683191347244.png

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 445

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 123 Super User 2026 Season 1

#3
chiaraalina Profile Picture

chiaraalina 59 Super User 2026 Season 1

Last 30 days Overall leaderboard