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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
MrMP
Helper III
Helper III

Can not connect to SQL from VM

Hi All,

 

I have Power BI desktop installed on virtual machine with Static IP. That IP is whitelisted at clients SQL server (sqlexpress). Auth is basic and I have user and password. No matter what I try I cant connect to the db and view they created. What am I missing? Do I need to whitelist any other IP. The idea is to have gateway on VM and have it refresh the report from their SQL server.

Thank you for any help, I am new to this!

1 ACCEPTED SOLUTION
FarhanAhmed
Community Champion
Community Champion

You need to allow remote connections for your SQL in VM

 

you can follow steps from these articles to solve the problem

 

https://medium.com/@nishancw/how-to-enable-remote-connections-to-sql-server-dc5b6c812b5

 

 







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

Proud to be a Super User!




View solution in original post

7 REPLIES 7
FarhanAhmed
Community Champion
Community Champion

Try run Power BI Desktop as "Run As Administrator" and see if it still persists.







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

Proud to be a Super User!




Thank you for the answer but that did not help. Any other suggestions? Do they have to whitelist any other IP?

 

FarhanAhmed
Community Champion
Community Champion

Can you please share the error & screenshot of it?







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

Proud to be a Super User!




"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: TCP Provider, error: 0 - The wait operation timed out.)"

FarhanAhmed
Community Champion
Community Champion

This error doesn't look like a Whitelist issue,

Are you able to log in thru SSMS from your machine where PBI Desktop is installed?

 

Take a look at this article

 

https://docs.microsoft.com/en-us/sql/database-engine/configure-windows/troubleshoot-connecting-to-th...

 

 







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

Proud to be a Super User!




I couldnt. This is the error:

 

"

TITLE: Connect to Server
------------------------------

Cannot connect to xxxxx.xxxx.xx\sqlexpress.

------------------------------
ADDITIONAL INFORMATION:

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: TCP Provider, error: 0 - The wait operation timed out.) (Microsoft SQL Server, Error: 258)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&Evtsrc=MSSQLServer&EvtID=258&LinkId...

------------------------------

The wait operation timed out

------------------------------
BUTTONS:

OK
------------------------------"

FarhanAhmed
Community Champion
Community Champion

You need to allow remote connections for your SQL in VM

 

you can follow steps from these articles to solve the problem

 

https://medium.com/@nishancw/how-to-enable-remote-connections-to-sql-server-dc5b6c812b5

 

 







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

Proud to be a Super User!




Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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