Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
manoj_0911
Post Patron
Post Patron

Unable to Connect to SQL Server on AWS - Power BI Desktop

Details:

I'm encountering an error while trying to connect to a Microsoft SQL Server hosted on AWS in Power BI Desktop. The error message states:

 

"Details: "Microsoft SQL: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)""

 

Troubleshooting Steps Taken:

* Verified that the SQL Server on AWS is running.
* Double-checked the username and password in Power BI (and confirmed they have appropriate database access).
* Reviewed the Security Group settings for the EC2 instance and ensured an inbound rule allows traffic on port 1433 from my computer's IP address.
* Checked for any firewall restrictions on my local machine or within AWS that might be blocking the connection.

 

I'm new to both PowerBI and AWS, Please help on this

1 ACCEPTED SOLUTION
rajendraongole1
Super User
Super User

Hi @manoj_0911 -The error message you encountered indicates that Power BI Desktop cannot establish a connection to your Microsoft SQL Server hosted on AWS.

your SQL Server instance on AWS is configured to listen on port 1433.Verify that SQL Server is set to allow SQL Server authentication and Windows authentication.Double-check that the Security Group associated with your EC2 instance allows inbound traffic on port 1433 from your IP address. This includes ensuring the rule is set to allow TCP traffic.

 

Please go through the below links for more details.

 

Control traffic to your AWS resources using security groups - Amazon Virtual Private Cloud

Connecting the Microsoft Power BI service to AWS data sources - Using Microsoft Power BI with the AW...

 

https://wciconsulting.com/resources/power-bi-to-aws-sql-server-connection-tutorial/

 

Hope the above details are helpful.

 

 

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

1 REPLY 1
rajendraongole1
Super User
Super User

Hi @manoj_0911 -The error message you encountered indicates that Power BI Desktop cannot establish a connection to your Microsoft SQL Server hosted on AWS.

your SQL Server instance on AWS is configured to listen on port 1433.Verify that SQL Server is set to allow SQL Server authentication and Windows authentication.Double-check that the Security Group associated with your EC2 instance allows inbound traffic on port 1433 from your IP address. This includes ensuring the rule is set to allow TCP traffic.

 

Please go through the below links for more details.

 

Control traffic to your AWS resources using security groups - Amazon Virtual Private Cloud

Connecting the Microsoft Power BI service to AWS data sources - Using Microsoft Power BI with the AW...

 

https://wciconsulting.com/resources/power-bi-to-aws-sql-server-connection-tutorial/

 

Hope the above details are helpful.

 

 

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors