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 Apps / Changing Connection to...
Power Apps
Answered

Changing Connection to different SQL Servers

(0) ShareShare
ReportReport
Posted on by 15

We have different environments for our apps, DEV, QA, STAGE, PROD. 

For each environment we have a separate SQL Database.  

When creating an app in DEV we connect to the DEV SQL Database. 

The issue comes up when "promoting" the app from DEV to QA (QA to STAGE and so on).

Once the app is in the QA environment we have to drop the connection to the DEV SQL Database and connect to the QA SQL Database.

Even though both servers have the same exact table names, we're having to "re-connect" every single field on each of the screens (Browse, Detail, Edit). This is done by deleting the table name within the formula bar, start typing it out again, then select it from the dynamic dropdown.

JoeJohnCards_1-1644512120659.png

Surely there is a better way to switch databases.  Does anyone know?

 

Categories:
I have the same question (0)
  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @JoeJohnCards ,

     

    You can remove the connection on Data Source panel and create the new one, all related table and column names will adjust to the new connection automatically.

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

  • JoeJohnCards Profile Picture
    15 on at

    It works now.  Looks like it was because we had a different database name on the different servers.  Once we had the same database name it worked just like you said @v-jefferni 

  • Flischewski1 Profile Picture
    9 on at

    Can you please show how this is done? We have 2 environments (DEV & PROD) and secure the connection via "Azure AD Integrated". For me the only option is to remove all tables and create new connections to all tables one by one. Is there a better option?

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 534

#2
WarrenBelz Profile Picture

WarrenBelz 416 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 306

Last 30 days Overall leaderboard