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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
constantLearner
Frequent Visitor

Steps to connec to SQL Server 2012

Here's the problem I am facing:

 

I have an SQL Server 2012 database hosted on a remote machine which can be accessed from another remote machine. I need to connect to the SQL Server 2012 database using PowerBI desktop version.

 

Can anyone help me with the steps.

1 ACCEPTED SOLUTION
v-yuezhe-msft
Employee
Employee

Hi @constantLearner,

Adding to other post, you can follow steps below to connect to SQL Server from Power BI Desktop.

1. Open Power BI Desktop, select the Get Data>Database>SQL Server Database option as shown in the following screenshot.
1.PNG

2. In the connection, enter your SQL Server name and the database name. For differences between Import and DirectQuery, please check this article. There are also advanced options to specify the timeout if the query takes long time to execute and an option the specify the SQL Commands.
2.PNG


3.Select the authentication method to connect to your database. If you use a SQL login rather than a Windows login, please choose Database in the following screenshot and enter your account and password.
3.PNG

4. You will receive a message about the connection. It does not support encrypted connection. Click OK to accept the unencrypted connection.

5. Select tables to load into Power BI Desktop from the navigator.

For more details about the above steps, you can also review this similar blog.

 

 

Thanks,
Lydia Zhang

Community Support Team _ Lydia Zhang
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

2 REPLIES 2
v-yuezhe-msft
Employee
Employee

Hi @constantLearner,

Adding to other post, you can follow steps below to connect to SQL Server from Power BI Desktop.

1. Open Power BI Desktop, select the Get Data>Database>SQL Server Database option as shown in the following screenshot.
1.PNG

2. In the connection, enter your SQL Server name and the database name. For differences between Import and DirectQuery, please check this article. There are also advanced options to specify the timeout if the query takes long time to execute and an option the specify the SQL Commands.
2.PNG


3.Select the authentication method to connect to your database. If you use a SQL login rather than a Windows login, please choose Database in the following screenshot and enter your account and password.
3.PNG

4. You will receive a message about the connection. It does not support encrypted connection. Click OK to accept the unencrypted connection.

5. Select tables to load into Power BI Desktop from the navigator.

For more details about the above steps, you can also review this similar blog.

 

 

Thanks,
Lydia Zhang

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

@constantLearner As long as from the machine where power bi desktop is installed you're able to talk to machine that is on another machine (where your database is), you don't need to do anythign except open power bi desktop and connect to database.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors