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
a7n
New Member

Cant Connect SQLEXPRESS to Power BI

Hi All 

 

Having the below issues when i am trying to connect AdventureWorks2014 on SQLEXPRESS instance running on my local machine.

 

Error.jpg

 

I have made sure the Server is running

Status.jpg

 

I have logged in 

Login.jpg

and trying to connect PowerBI as below

PBLOGIN.JPG

Any thoughts what is going on  ?

 

 

1 ACCEPTED SOLUTION
v-yuezhe-msft
Employee
Employee

Hi @a7n,

 

In your scenario, you use wrong Server name when connecting to SQL Server in Power BI Desktop. Please enter “ServerName\SQLEXPRESS” or “localhost\SQLEXPRESS” in Server textbox in Power BI Desktop.

Thanks,
Lydia Zhang

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

11 REPLIES 11
v-yuezhe-msft
Employee
Employee

Hi @a7n,

 

In your scenario, you use wrong Server name when connecting to SQL Server in Power BI Desktop. Please enter “ServerName\SQLEXPRESS” or “localhost\SQLEXPRESS” in Server textbox in Power BI Desktop.

Thanks,
Lydia Zhang

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

“localhost\SQLEXPRESS”

Worked perfectly 

Thx

I have the same problem but with an instance of Sql server, please help

and when I use Sql server Management studio I use the windows connection.....

sorry, the Windows Authentication, maybe is this the problem ??

solved, worked writing the name of the server in Uppercase (?? bo..)

NOT SOLVED.. i HAVE ALWAYS THE ERROR:

 

Message=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: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

 

I have used a file .pbix with connection to a remote db, I have only chenged to point to a local db Sql server,

 

apparently does not work with direct query, works only 'import'...

please hekp me, I need to use direct query to DB, not import the whole table...

and the option 'direct query' is always NOT enabled...

img.png

I have find a speedy solution creating a user on the localhost db, giving it a lot of permissions, and connecting with sql server authentication, and not with windows auth., so it works

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.

Top Solution Authors
Top Kudoed Authors