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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
tylerhahn3
New Member

On-Premesis SQL Server Gateway - How to add data source

Hi everyone:

 

I've succesfully installed the On-Premesis gateway for Power BI, flow, apps, etc... and connected it succesfully to my on-premesis sql server 2012 database. However I cannot for the life of me figure out how to now add a data set from the connection....am I missing something? The only options for data set related to a sql server instance is azure - and I need to use my on premesis source....

 

Please help!

1 ACCEPTED SOLUTION
v-qiuyu-msft
Community Support
Community Support

Hi @tylerhahn3,

 

From your description, it seems that you connect to on-premise SQL Server database in desktop use DirectQuery mode, right?

 

As you already installed the on-premise data gateway, you can go to Power BI service click Manage Gateways, create a SQL Server data source use the same connection information as in desktop. After publish the report to service, the dataset will be configured to use data gateway. For detail steps, see: Manage your data source - SQL Server.

 

a2.PNGq3.PNG

 

Best Regards,

Qiuyun Yu

Community Support Team _ Qiuyun Yu
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
v-qiuyu-msft
Community Support
Community Support

Hi @tylerhahn3,

 

From your description, it seems that you connect to on-premise SQL Server database in desktop use DirectQuery mode, right?

 

As you already installed the on-premise data gateway, you can go to Power BI service click Manage Gateways, create a SQL Server data source use the same connection information as in desktop. After publish the report to service, the dataset will be configured to use data gateway. For detail steps, see: Manage your data source - SQL Server.

 

a2.PNGq3.PNG

 

Best Regards,

Qiuyun Yu

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Qiuyun yu

I am facing the same issue but with ssas live connection. I dont know what to put in username field and password field. Can you help me?

tylerhahn3
New Member

Ok, so I feel a bit stupid - but I was trying to use the web interface for Power BI to create a new dataset - which doesn't apparently have a directquery option to connect to an on premesis gateway. I just opened the desktop app, and ta-da, there is the option to use a sqlserver source. I'm not sure I understand the purpose of the gateway though, if I can't connect to my on premesis sql server to use directquery (or some other method of querying the connected database data source).

 

So I'd still love your help,

 

Tyler

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 Kudoed Authors