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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
hapeta
New Member

Issure trying to connect SQL Server to data gateway

Hi

 

I'm trying to connect the installed gateway to an SQL server on the same subnet (two different machines).

I can connect the SQL server with Management Studio from the gateway-PC, but if I try to add this as data source I get the following error.

 

Any ideas or suggestions?

 

Best regards

 

Hans

 

 

Unable to connect: We encountered an error while trying to connect to . Details: "We could not register this data source for any gateway instances within this cluster. Please find more details below about specific errors for each gateway instance."Hide details

Activity ID:50186898-3db2-49ad-b751-41132045c52d
Request ID:1bffbb7f-0095-d5be-0508-cb2d3ddbac18
Cluster URI:https://wabi-west-europe-b-primary-redirect.analysis.windows.net
Status code:400
Error Code:DMTS_PublishDatasourceToClusterErrorCode
Time:Sun Sep 09 2018 20:38:09 GMT+0200
Version:13.0.6617.115
PowerBI Gateway:Cannot connect to the database.
Underlying error code:-2146232060
Underlying error message:Die von der Anmeldung angeforderte SRV02\SQLEXPRESS-Datenbank kann nicht geöffnet werden. Fehler bei der Anmeldung. Fehler bei der Anmeldung für den Benutzer '****'.
DM_ErrorDetailNameCode_UnderlyingHResult:-2146232060
DM_ErrorDetailNameCode_UnderlyingNativeErrorCode:4060
1 ACCEPTED SOLUTION
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @hapeta,

 

Can you connect to it from Desktop in the gateway machine? I would suggest you check out the credential. Can you share the connection parameter when you set up the gateway? You can mask some sensitive part. Maybe you try another credential for there is more than one credential type.

Issure_trying_to_connect_SQL_Server_to_data_gateway

 

 

Best Regards,

Dale

Community Support Team _ Dale
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

3 REPLIES 3
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @hapeta,

 

Can you connect to it from Desktop in the gateway machine? I would suggest you check out the credential. Can you share the connection parameter when you set up the gateway? You can mask some sensitive part. Maybe you try another credential for there is more than one credential type.

Issure_trying_to_connect_SQL_Server_to_data_gateway

 

 

Best Regards,

Dale

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

Hi Dale,

it worked. My mistake was I wrote the named instance in the Database field.

With the name of the database it worked.

Thank you

hapeta
New Member

I forgot to mention that on the SQL server are two named instances:

one SQL Server 2014 that works with the data gateway and one SQL Server Express that gives me the error.

 

Any ideas?

 

Thank you

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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