cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
asif082
Helper I
Helper I

Execute Store Procedure using power automate

Hello everyone,

 

Hope you are doing well. I have got store procedure in SQL server and I am trying to execute using power automate.

 

Here is the scenario:

I have two database in my SQL server A and B. Database A get restore every night with updated copy which contains all the tables. Database B hold store proc and brings data from A to B.  

In power automate I have made connection using database B and by using Execute stored procedure (V2) I have created the flow but it gives following error.

 

Microsoft SQL: The server principal "PowerApp" is not able to access the database "A" under the current security context.
inner exception: Microsoft SQL: The server principal "PowerApp" is not able to access the database "A" under the current security context.

 

Store procedure run perfectly in SQL server but not using power automate. So, if someone can explain what I am doing wrong, would be really helpful?

 

Thanks.

0 REPLIES 0

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,027)