Hello Aslam
Yes, it is possible to connect to a Microsoft SQL Server database from a Power App, even if the SQL Server is installed on a non-domain PC. Here are the general steps to establish the connection:
Install and configure the on-premises data gateway: Since your SQL Server is installed on a non-domain PC, you will need to set up an on-premises data gateway. The gateway acts as a bridge between your Power App and the SQL Server, allowing secure communication. Follow the instructions provided by Microsoft to install and configure the on-premises data gateway.
Create a connection in Power Apps: Open your Power App in the Power Apps Studio. Navigate to the "Data" tab and click on "New connection". Search for "SQL Server" in the list of available connectors and select it. Provide the necessary details such as server name, database name, authentication method, and credentials to establish the connection.
Configure the connection settings: After creating the connection, you can configure additional settings such as defining tables, views, or queries to retrieve data from the SQL Server database. You can also specify any required filters or transformations.
Use the SQL Server data in your Power App: Once the connection is established and configured, you can start using the SQL Server data in your Power App. You can create screens, forms, galleries, or other components that interact with the SQL Server database. You can perform operations such as reading data, updating records, or executing stored procedures.
It's worth noting that you need to ensure the necessary network and firewall configurations are in place to allow communication between the on-premises data gateway and the SQL Server on the non-domain PC. Additionally, appropriate security measures should be implemented to protect the data and ensure proper authentication and authorization..