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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Kazanskyi
Helper I
Helper I

error: 40 - Could not open a connection to SQL Server

Can't set up a connection with a dataflow to the SQL Server through the gateway.

 

We use a gateway to connect to the SQL database in multiple reports with no issues, but the dataflow throws an error.

Kazanskyi_0-1699389855017.png

 

4 REPLIES 4
GilbertQ
Super User
Super User

Hi @Kazanskyi 

 

That should be on the datasource settings in the Gateway where you can change that!





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

Proud to be a Super User!







Power BI Blog

Hi @GilbertQ ,

 

Sorry, I can't find it in the Gateway data source settings as well.

Kazanskyi_0-1699448320776.png

 

GilbertQ
Super User
Super User

Hi @Kazanskyi 

 

From the error could you try and change the connection to use TCP/IP instead of Named Pipes?





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

Proud to be a Super User!







Power BI Blog

Hello @GilbertQ ,

Sorry, I can't find any advanced settings to change it.

Kazanskyi_0-1699395431325.png

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors