Manage your data source - Import/scheduled refresh


We've split the on-premises data gateway docs into content that's specific to Power BI and general content that applies to all services that the gateway supports. You're currently in the Power BI content. To provide feedback on this article, or the overall gateway docs experience, scroll to the bottom of the article.

After you install the on-premises data gateway, you need to add data sources that can be used with the gateway. This article looks at how to work with gateways and data sources that are used for scheduled refresh as opposed to DirectQuery or live connections.

Add a data source

For more information about how to add a data source, see Add a data source. Select a data source type.

All of the data source types listed can be used for scheduled refresh with the on-premises data gateway. Analysis Services, SQL Server, and SAP HANA can be used for either scheduled refresh or DirectQuery/live connections.

Select the data source

Then fill in the information for the data source, which includes the source information and credentials that are used to access the data source.


All queries to the data source run by using these credentials. To learn more about how credentials are stored, see Store encrypted credentials in the cloud.

Filling in the data source settings

For a list of data source types that can be used with scheduled refresh, see List of available data source types.

After you fill in everything, select Add. You can now use this data source for scheduled refresh with your on-premises data. You see Connection Successful if it succeeded.

Displaying the connection status

Advanced settings

Optionally, you can configure the privacy level for your data source. This setting controls how data can be combined. It's only used for scheduled refresh. To learn more about privacy levels for your data source, see Privacy levels (Power Query).

Setting the privacy level

Use the data source for scheduled refresh

After you create the data source, it's available to use with either DirectQuery connections or through scheduled refresh.


The server and database names must match between Power BI Desktop and the data source within the on-premises data gateway.

The link between your dataset and the data source within the gateway is based on your server name and database name. These names must match. For example, if you supply an IP address for the server name within Power BI Desktop, you must use the IP address for the data source within the gateway configuration. If you use SERVER\INSTANCE in Power BI Desktop, you also must use it within the data source configured for the gateway.

If you're listed in the Users tab of the data source configured within the gateway and the server name and database name match, you see the gateway as an option to use with scheduled refresh.

Displaying the users


Upon republish, the data set owner must reassociate the dataset to a gatweay and corresponding data source again. The previous association is not maintained upon republish.


If your dataset contains multiple data sources, each data source must be added within the gateway. If one or more data sources aren't added to the gateway, you won't see the gateway as available for scheduled refresh.

Next steps

More questions? Try the Power BI Community.