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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Christi
New Member

Connect Power Bi Dataflow to a Microsoft SQL Server Database

Hi all,

I am trying to connect my Power Bi service directly to a specific SQL Server Database. Precisely, I would like to be able to create a dataflow (in the Power Bi app) that can directly be connected to a SQL server database and thus, pull the data tables of the database into my dataflow. Apparently, even if I use the connection settings and credentials of the database, the connection can not be created ( based on my Session ID). 

 

The process I am following is presented below:

 

Go to Power Bi app -> Choose a Workspace - > Crete a new dataflow -> Add new tables -> Choose data source -> SQL Server Database -> Use the credentials of my database -> Result: Unable to create an OAuth connection (for my Session ID) - Europe

Notice: I do not have access to the Azure SQL Server, I do only use the Microsoft SQL Server Management Studio


Any thoughts and suggestions on that would be appreciated.

3 REPLIES 3
DanMoniz
New Member

Hi @Christi ,

 

I am having the same issue. I am also trying to create the Data FLow with tables using the connection to the Microsoft SQL Server.

 

Were you able to solve it in any different way to the suggested by @jaweher899 ?

 

Thanks

agonzalezc
Regular Visitor

I have the same problem. In my case I am trying the third option. I have a personal Gateway installed in a VM and when trying to connect to a SQL Server database it always asks me for connection credentials -> connection: "create new connection". and in data gateway: (none). And it doesn't allow me to change neither the credentials nor the gateway.

 

image.png

jaweher899
Super User
Super User

Based on your description, it seems like you are trying to connect to a SQL Server database that is not hosted on Azure, which requires an OAuth connection. OAuth is a security protocol that enables you to authorize a third-party application to access your data without sharing your password.

To resolve this issue, you have a few options:

  1. Host your SQL Server database on Azure: By hosting your database on Azure, you can use Azure Active Directory (AAD) to authenticate the Power BI dataflow, which will support OAuth connections.

  2. Use a DirectQuery connection: Instead of using a dataflow, you can create a Power BI report that uses DirectQuery to connect to your on-premises SQL Server database. This will allow you to connect to your database without using OAuth, but it has limitations, such as a lower refresh frequency and a more complex setup process.

  3. Use a data gateway: You can install a data gateway on a machine that has access to your SQL Server database and configure it to act as a bridge between Power BI and your database. This will allow you to use Power BI dataflows to connect to your database and refresh the data on a regular basis.

I hope these suggestions help you resolve your issue. If you need further assistance, please let me know.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

Check out the August 2024 Power BI update to learn about new features.

August Carousel

Fabric Community Update - August 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors