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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Refreshing data from SQL Server

I have imported data from the last 6 months into a Power BI desktop file using an SQL Query. In desktop, when I manually click refresh it reruns the query and gets the latest data for today. However, when I click refresh on Power BI service it does nothing and I get a warning message next to the dataset saying "scheduled refresh has been disabled". Anyone know why this is and how to get the data to refresh on power bi service?

1 ACCEPTED SOLUTION
Thejeswar
Super User
Super User

Hi @Anonymous ,

The Refresh of data source from Power BI Service requires to set up a on premise gateway in your machine/ server. This will help establish connection between your Power BI reports and SQL Server dataset in Power BI Service.

 

More information on how to set up a Gateway is provided in the below link. The Link also provides next steps on the same

https://docs.microsoft.com/en-us/power-bi/connect-data/service-gateway-onprem 

 

 

Unless we setup a gateway, we might not be able to refresh the dataset from Power BI Service

View solution in original post

7 REPLIES 7
Thejeswar
Super User
Super User

Hi @Anonymous ,

The Refresh of data source from Power BI Service requires to set up a on premise gateway in your machine/ server. This will help establish connection between your Power BI reports and SQL Server dataset in Power BI Service.

 

More information on how to set up a Gateway is provided in the below link. The Link also provides next steps on the same

https://docs.microsoft.com/en-us/power-bi/connect-data/service-gateway-onprem 

 

 

Unless we setup a gateway, we might not be able to refresh the dataset from Power BI Service

Anonymous
Not applicable

Hi @Thejeswar 

What about connecting using directquery instead? My dataset has 350k rows so will it be suitable? From what I've read online, directquery will just update itself automatically when I click on my visual. Is this how it works?

Hi @Anonymous ,

Irrespective of when your dataset is Import Mode or Direct Query mode, the dataset would require a gateway to connect to On-premise database.

 

Imagine this as your reports are published to Cloud Power BI Service, while your data is in your On-premise Server. This Gateway is more like a path between the two environments. 

 

In Direct QUery mode, when you run the report, using the gateway the query is sent to the SQL server which sends back the data using the gateway to your reports.

 

In case of Direct Query report, you might not require to setup a Scheduled Refresh as with every hit the report is going to get data directly from SQL server

 

Best Regards,

Anonymous
Not applicable

Ah ok. If I set up a gateway in personal mode, then have a scheduled refresh set up 7am every morning, what will happen if I leave my pc off overnight? I am guessing it won't refresh until I open up my pc again the next day, right?

Yes that's right!!

Anonymous
Not applicable

Ok, I have installed the gateway but not sure how to proceed. The guide says to go to manage gateaways but on there it says I have no gateway installed. Is there something I need to do to get it to appear there?

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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