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 / Power Automate / SQL on premise connect...
Power Automate
Answered

SQL on premise connector to run stored procedure issue

(0) ShareShare
ReportReport
Posted on by 99

So I'm not sure what happened if this is Microsoft making updates, I set this up wrong, or something else is happening but at one point this worked.  

We have an on premise SQL Server and I installed the gateway on my laptop to run a stored procedure in Power Automate.  Works fine at that point.  Now I was able to get access to a virtual machine, in which I also installed the gateway on that VM.

When I tried to set up the gateway connection on that VM - I set it up as a Windows Authentication but it seems to fail and now nothing is working.  Is this something internally I should follow up with my SQL Server team, or is this something on Microsoft?

I'm pretty sure I got the connection correctly since I can login properly with SSMS and other apps.

 

Any ideas?

Categories:
I have the same question (0)
  • eric-cheng Profile Picture
    5,171 on at

    Hi @IncursioML1 ,

     

    Have you tried deleting and recreating the connection? 

     

    What errors/if any are you getting?

     

    Do you see the new data gateway under Date > Gateways?

     

    ericcheng_0-1629759934523.png

     

    --------------------------------------------------------------------------
    If I have answered your question, please mark my post as a solution
    If you have found my response helpful, please give it a thumbs up

    Connect on LinkedIn

     

     

  • IncursioML1 Profile Picture
    99 on at

    Yes I have to clean things up since I was making a bunch with bad parameters (my own fault).

     

    Now that i do have some created, I see here that I installed the gateway in a VM but I can't adjust the setting in the 'Connections'  it always utilizes the 'Cloud' instead of 'On Premise'.  How do I actually change that connection to 'On Premise' in the 'Connections' tab of Power Automate?

     

    IncursioML1_0-1629814435989.png

     

  • eric-cheng Profile Picture
    5,171 on at

    Hi @IncursioML1 ,

     

    Is this when you are recreating the connection?  If not, can you try recreating it?

     

    --------------------------------------------------------------------------
    If I have answered your question, please mark my post as a solution
    If you have found my response helpful, please give it a thumbs up

    Connect on LinkedIn

  • Verified answer
    IncursioML1 Profile Picture
    99 on at

    Ok it definitely was on our end - we changed the login instead of using 'UNIXNAME'  we added this additional layer of 'COMPANYNAME\UNIXNAME' so I had to redo the 'Connection' login.  Which I keep getting confused since the gateway is one thing, but the connection is another in which it attaches to a gateway.  Once I updated the login and pointed the 'Connection' to the new gateway that was set up on the VM, I retested a power automate flow to run a stored procedure, that works.  The real test now will be will that automated flow run at midnight tonight when I'm not working and the VM is still on.

     

    I'll mark as answered, sorry for confusion.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 248 Super User 2026 Season 2

#2
trice602 Profile Picture

trice602 160 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 142 Super User 2026 Season 2

Last 30 days Overall leaderboard