I am trying to connect the power app the sql data base through teamviewer with my office system but it not get connected and data is not get pulled on the app. SQL server is connected within the office network on-prem.
From the office if I test the app it working fine on my system and pulled the data correctly. Can anybody please help out how I can resolve this issue?
To connect to a SQL database on-premises you have to use the on-premises data gateway. You can't connect to it through TeamViewer. Here's a blog post on how to connect to SQL using the on-premises gateway.