This page describes the
SQL Server VM on Azure
SQL Server On-Premises
HDInsight Spark
solution.
Set up Connection between SQL Server and PowerBI
Follow the instructions below to set up a connection between your SQL Server database and PowerBI. Perform these steps after you have created the
Campaign
database.
Follow the instructions below to set up a connection between your Hive table and PowerBI. Perform these steps after you have created the
recommendations
table by executiong the campaign_main.R and campaign_scoring scripts.
- Download and install the Spark ODBC driver.
- Push the
Windows
key on your keyboard - Type
ODBC
- Open the correct app depending on what type of computer you are using (64 bit or 32 bit). To find out if your computer is running 32-bit or 64-bit Windows, do the following:
- Open System by clicking the
Start
button, clickingControl Panel
, clickingSystem and Maintenance
, and then clickingSystem
. - . Under System, you can view the system type
- Open System by clicking the
- Click on
Add
-
Select
Server Native Client 11.0
and clickFinish
.
-
Select
Microsoft Spark ODBC Driver
and clickFinish
-
Under Name, Enter
Campaign
. Under Server enter the MachineName from the SQL Server logins set up section. PressNext
.
-
Under Name, Enter
Campaign
. Add the Host name (of the form myclustername.azurehdinsight.net). For username, enteradmin
. Enter the password you chose when you created the cluster.
-
Select
SQL Server authentication
and enter the credentials you created in the SQL Server set up section. PressNext
- Check the box for
Change the default database to
and enterCampaign
. PressNext
.
- Press
Finish
-
Press
Test Data Source
-
Press
Test
. - Press
OK
in the new popover. This will close the popover and return to the previous popovers.
- Now that the Data Source is tested. Press
OK
- Finally, click
OK
and close the window
You are now ready to use this connection in PowerBI by following the instructions here.