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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! 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
Anonymous
Not applicable

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

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
Anonymous
Not applicable

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

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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 Kudoed Authors