Skip to main content
Community site session details

Community site session details

Session Id : MWapJ0kAwBbuz5rzt5h8fM
Power Apps - Building Power Apps
Answered

Multiuser canvas app using On-Premise SQL Server database

Like (0) ShareShare
ReportReport
Posted on 14 Apr 2021 16:26:56 by 6

Hi everyone,

 

I hope that the way I have structured this isn't too long winded.  Please let me know if I need to edit this post to remain compliant with forum guidelines and recommendations.

 

BACKGROUND

I have a canvas app in development that aims to manage data and generate very basic administrative reports about employees within our Department.  This app needs to be shared with a 5 member administrative team that will be using the app to

  • Enter new records for new hires
  • Edit existing records
  • Access other apps within the M365 platform (Planner, Outlook, OneDrive for Business)

DATABASE

  • The app uses a SQL Server database that I have full administrative privileges over
  • This SQL Server instances can connect to PowerApps through an On-Premise Gateway
  • Data from PowerApps is transmitted and received predominantly through Edit Form controls that connect to various tables within the database
  • For development, I have provided the SQL Server connector with my own Enterprise domain credentials to use when accessing the SQL Server (which can authenticate via Windows as well as SQL Server)

 

KEY QUESTION

I would like to know how best to set up the SQL Server connector in PowerApps to enable 5 people to read/write records to the database simultaneously?

 

I originally believed that when sharing the app, I would need to create new a new SQL Server connector for each individual and create a corresponding login and set up permissions in SQL Server when sharing the app in order for each individual to have his/her own access to the app as well as the database.

  1. Would this mean I need to create each Edit Form control for each user?

 

I've been doing some reading and it sounds like SQL Server connections are always implicitly shared.

  1. Does this mean that the best approach is to set up a single service account in SQL Server and use that account's credentials in the PowerApps SQL Server connector to access resources within the database?
  2. What are the implications of several people using the app and concurrently making database requests through one service account?
  3. Are there any implications of using a single service account with regard to the connectors required to access OneDrive, Outlook, Planner, or other applications within M365?

 

Hopefully you have made it this far down and can share some insights.

If there are any other technical details or clarification I need to provide regarding the app's setup, please don't hesitate to let me know.

 

Thank you in advance for any information!

  • Verified answer
    Pstork1 Profile Picture
    67,158 Most Valuable Professional on 14 Apr 2021 at 16:36:56
    Re: Multiuser canvas app using On-Premise SQL Server database

    Yes, SQL is an implicitly shared connection so it is a good practice to use a service account for the credentials of the connection.  This should have no effect on other connections in the app since the credentials are embedded in the connection itself.

     

    This design is what MS calls "optimistic concurrency".  Which means its assumed that no two people will be editing the same record at the same moment in time.  Editing separate records concurrently is not a problem.  Multiple users using the same connection account is common in SQL whether you are in Power Apps or some other programming language.

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2