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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
jkl317
New Member

Unable to connect to SQL Server using Report Server but is able to connect using Desktop

I have a set of reports which was published to Report Server and was working until recently.

Reports include both Direct Query and Import reports.

 

It stopped working now. The credentials are working fine if I try Manage > Data sources > Test connection. They work when the report is open in Power BI Desktop as well.

 

When trying to run the direct query report, I get below error:

We couldn't connect to the Analysis Services server. Make sure you've entered the connection string correctly.

Request ID <>

Time <>

Service version /powerbi/libs

 

When when scheduled refresh is run for Import reports, I get below error:

SessionID: <>

[0] -1055784932: The credentials provided for the SQL source are invalid. (Source at <server;database>.). The exception was raised by the IDbCommand interface.

[1] -1055129594: The current operation was cancelled because another operation in the transaction failed.

[2] -1055784932: The command has been canceled.. The exception was raised by the IDbCommand interface.

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Thank you aduguid

Hi, @jkl317 

Due to the Report server update, we get this error from you when uploading a report using a Directquery connection to the Report server:

vjianpengmsft_3-1726193855699.png

 

Power BI report data sources in Power BI Report Server - Power BI | Microsoft Learn

vjianpengmsft_0-1726193551863.png

PBI_SQL_TRUSTED_SERVERS

You can configure this property by following the tutorial below:

Press the Win + R key combination to open the Run dialog box. Enter sysdm.cpl and press Enter:

vjianpengmsft_1-1726193766593.png

vjianpengmsft_2-1726193787587.png

At this point, we need to add the PBI_SQL_TRUSTED_SERVERS as a user environment variable and a system environment variable:

vjianpengmsft_4-1726193945185.png

vjianpengmsft_5-1726194013270.png

vjianpengmsft_6-1726194039814.png

vjianpengmsft_7-1726194080982.png

vjianpengmsft_8-1726194119119.png

vjianpengmsft_9-1726194142988.png

Then restart your Report server:

vjianpengmsft_10-1726194193150.png

After that, you can see your Directquery report normally.

vjianpengmsft_11-1726194228386.png

The following case is a case that once discussed this issue:

Solved: Power BI report Server issue with Direct Query to ... - Microsoft Fabric Community

 

Best Regards

Jianpeng Li

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

Thank you aduguid

Hi, @jkl317 

Due to the Report server update, we get this error from you when uploading a report using a Directquery connection to the Report server:

vjianpengmsft_3-1726193855699.png

 

Power BI report data sources in Power BI Report Server - Power BI | Microsoft Learn

vjianpengmsft_0-1726193551863.png

PBI_SQL_TRUSTED_SERVERS

You can configure this property by following the tutorial below:

Press the Win + R key combination to open the Run dialog box. Enter sysdm.cpl and press Enter:

vjianpengmsft_1-1726193766593.png

vjianpengmsft_2-1726193787587.png

At this point, we need to add the PBI_SQL_TRUSTED_SERVERS as a user environment variable and a system environment variable:

vjianpengmsft_4-1726193945185.png

vjianpengmsft_5-1726194013270.png

vjianpengmsft_6-1726194039814.png

vjianpengmsft_7-1726194080982.png

vjianpengmsft_8-1726194119119.png

vjianpengmsft_9-1726194142988.png

Then restart your Report server:

vjianpengmsft_10-1726194193150.png

After that, you can see your Directquery report normally.

vjianpengmsft_11-1726194228386.png

The following case is a case that once discussed this issue:

Solved: Power BI report Server issue with Direct Query to ... - Microsoft Fabric Community

 

Best Regards

Jianpeng Li

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

 

 

 

 

 

 

 

Thank Youuuuuuuuuuuu,
Bro I am trying to figure it out from last few days,

thank god I found this article...

aduguid
Super User
Super User

There is an issue with direct query in the May 2024 version of the report server.  I'd suggest installing the previous version. 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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