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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
mak82pk
Helper I
Helper I

SQL Database Vs Azure SQL Database Direct Query Power BI

Dear All,

I am confused understanding direct query between SQL Database Vs Azure SQL Database Power BI

https://powerbi.microsoft.com/en-us/documentation/powerbi-desktop-directquery-data-sources/

 

I am currently using SQL Server

For SQL:

Gateway is required.

Does it mean I cannot have real-time data when using direct query and can only refresh dataset after 15min?

It is mentioned under benefit of using direct query 

https://powerbi.microsoft.com/en-us/documentation/powerbi-desktop-use-directquery/#limitations-of-di...

The 1 GB dataset limitation does not apply to DirectQuery

And limitation is

The resultset of a query to external data source has exceeded
the maximum allowed size of '1000000' rows.

 Is the above same for SQL server?

 

Your prompt response would be highly appreciated.

 

1 ACCEPTED SOLUTION
tringuyenminh92
Memorable Member
Memorable Member

Hi @mak82pk,

 

There is no different between SQL DB and Azure SQL DB, it's based on your connection mode (Import mode or Direct Query).

  • The limitation 1m rows will be applied for both SQL DB and azure db when you use Direct QUery for them.
  • The 1GB dataset is applied for Import mode (whatever your sources is cloud or on-premise)
  • Gateway is required for SQL DB cause it's on-premise, so it needs gateway to handles data transfering from your local to PBI cloud.
  • When using DirectQuery or Live connection, you are in near real-time scenario, and data is up to date whenever users/clients interacts with your charts/reports. If there is no interaction, the data of report will be refreshed every 15 minutes (this refresh period now could be adjusted to 1hour, daily,...)

View solution in original post

2 REPLIES 2
tringuyenminh92
Memorable Member
Memorable Member

Hi @mak82pk,

 

There is no different between SQL DB and Azure SQL DB, it's based on your connection mode (Import mode or Direct Query).

  • The limitation 1m rows will be applied for both SQL DB and azure db when you use Direct QUery for them.
  • The 1GB dataset is applied for Import mode (whatever your sources is cloud or on-premise)
  • Gateway is required for SQL DB cause it's on-premise, so it needs gateway to handles data transfering from your local to PBI cloud.
  • When using DirectQuery or Live connection, you are in near real-time scenario, and data is up to date whenever users/clients interacts with your charts/reports. If there is no interaction, the data of report will be refreshed every 15 minutes (this refresh period now could be adjusted to 1hour, daily,...)

Thanks for your prompt response.

 

I embedded the URL in my web application and report was updated after 1 hour even when I was interacting with the report.

 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors