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
mbailey
Helper II
Helper II

Error from SQL linked server through Gateway

Hi,

 

Running MS SQL Server 2012.  I have a Gateway setup to this server. It is working just fine.

I've created a Linked Server on this server to another 2008 SQL Server.  In Management Studio I can run a query against the Linked Server just fine. I created a View on the 2012 Gateway server to a table on the 2008 Linked server.  I can query against that View with no problem. But, in Power BI, when I select this View as the data source I get the error below. It's saying it's an "Authentication" error, but it seems if that was the case then none of the above would work either.  I do know that the 'sa' password for the Linked server is different than the 'sa' password for the Gateway server but would think that was handled be the Linked Server config.

 

Does anyone have any suggestions?

 

Thanks,

Mike Bailey

 

DataSource.Error: Microsoft SQL: The OLE DB provider "SQLNCLI11" for linked server "DB001\GP10" reported an error. Authentication failed.
Cannot initialize the data source object of OLE DB provider "SQLNCLI11" for linked server "DB001\GP10".
Details:
DataSourceKind=SQL
DataSourcePath=csisql01;dmta_app
Message=The OLE DB provider "SQLNCLI11" for linked server "NAUSATDB001\GP10" reported an error. Authentication failed.
Cannot initialize the data source object of OLE DB provider "SQLNCLI11" for linked server "DB001\GP10".
Number=7399
Class=16

2 ACCEPTED SOLUTIONS
v-yuezhe-msft
Microsoft Employee
Microsoft Employee

Hi @mbailey,

Do you connect to the view in Power BI Desktop? If so, I test the scenario as yours, everything works well. I log in SQL Server 2012 using sa account and then configure linked server as follows. Then when I connect to the database containing the view of SQL Server 2012 in Power BI Desktop, I also use sa account.
1.PNG

Could you please describe more details about how you configure the linked server and how to connect to the database 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

Hi,

 

Looks like my configuration is different from yours.  I will try setting up the Linked Server as you have shown and see if it helps.

 

Thanks,

Mike Bailey

 

BI Linked Server.png

 

 

 

 

View solution in original post

3 REPLIES 3
v-yuezhe-msft
Microsoft Employee
Microsoft Employee

Hi @mbailey,

Do you connect to the view in Power BI Desktop? If so, I test the scenario as yours, everything works well. I log in SQL Server 2012 using sa account and then configure linked server as follows. Then when I connect to the database containing the view of SQL Server 2012 in Power BI Desktop, I also use sa account.
1.PNG

Could you please describe more details about how you configure the linked server and how to connect to the database 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.

Hi,

 

Looks like my configuration is different from yours.  I will try setting up the Linked Server as you have shown and see if it helps.

 

Thanks,

Mike Bailey

 

BI Linked Server.png

 

 

 

 

After changing my settings for the Linked Server it is now working.

 

Thank you,

Mike Bailey

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.