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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Error Directquery

I have the following scenario, I have a hacker that has access to some database, and I have some applications of power bi that use these databases in the import data mode, the loads of those applications are done once a day and I use for this the On-premises data gateway and everything works normally.

 

But now the need arose to develop a dashboard that will use data from a sql server database that is on the web, that is, I can access it from anywhere and this dashboard will work via directquery, that is, it will consume the data Of this bank in real time.

I did a test uploading to the power bi portal a version of this dashboard that I have already developed and the following error is occurring when I try to access this dashboard:

Untitled.png

 

"This data source can not be accessed by a data gateway: xxx.xxx.xx.xxx server, Database: xxx"

 

And provides a link that takes me to the comparison page between Personal gateway (which I do not use) with the On-premises data gateway (which is what I'm already using)

 

I set up the connection of this dashboard in the panel of managing gateways of the portal of the power bi passing exactly the same data that I pass in the moment of loading the data that I do in that application when I am developing in it.

How can I make this direct query function work with this database?

1 ACCEPTED SOLUTION
v-caliao-msft
Microsoft Employee
Microsoft Employee

@Anonymous,

 

But now the need arose to develop a dashboard that will use data from a sql server database that is on the web

Do you mean you are trying to connect SQL Azure database with directQuery mode?

 

With DirectQuery, queries are sent back to your Azure SQL Database as you explore the data in the report view. This experience is suggested for users who are familiar with the databases and entities they connect to. Please refer to the link below to see the details about connect directly to Azure SQL Database.
https://powerbi.microsoft.com/en-us/documentation/powerbi-azure-sql-database-with-direct-connect/

 

Regards,

Charlie Liao

View solution in original post

1 REPLY 1
v-caliao-msft
Microsoft Employee
Microsoft Employee

@Anonymous,

 

But now the need arose to develop a dashboard that will use data from a sql server database that is on the web

Do you mean you are trying to connect SQL Azure database with directQuery mode?

 

With DirectQuery, queries are sent back to your Azure SQL Database as you explore the data in the report view. This experience is suggested for users who are familiar with the databases and entities they connect to. Please refer to the link below to see the details about connect directly to Azure SQL Database.
https://powerbi.microsoft.com/en-us/documentation/powerbi-azure-sql-database-with-direct-connect/

 

Regards,

Charlie Liao

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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