Connect SQL Server to Tableau: 2 Easy Methods

|

SQL Server to Tableau

Do you want to visualize your SQL Server data in Tableau? Are you looking for a simple fix? If yes, you’ve landed at the right page! This article provides you with a step-by-step solution to help you connect SQL Server to Tableau in a matter of minutes. 

This article aims at answering all your queries about connecting SQL Server to Tableau. Follow our easy guide to master the skill of connecting SQL Server to Tableau using various methods.

Table of Contents

Introduction to SQL Server

SQL Server Logo.

It is a relational database developed by Microsoft to store the structured data. It is known as MS SQL. SQL Server is built on top of SQL (Structured Query Language) to interact with database objects. SQL Server is tied to Transact-SQL or T-SQL (Microsoft proprietary language) for its programming interface, such as declaring the variable, stored procedure, exception handling, etc. Initially, SQL Server ran only on Windows Server and Windows devices, however now it is supported on Linux as well.

Key features of SQL Server:

  • Scalable: It is easy to scale and supports large amounts of data.
  • Performance: It performs exceptionally well on both Windows & Linux.
  • Secure: It ensures data security & availability irrespective of whether the data is at rest or being worked on. It further supports data recovery during crashes/failures.
  • Analytics Support: MS SQL supports data analytics & machine learning. It uses languages like Python or R to perform such operations.
  • Integrations: It is very easy to integrate MS SQL with tools like Hadoop for big-data analytics using T-SQL commands.
  • Threading: MS SQL efficiently supports multi-threading & parallel processing even with a massive amount of data & ensures powerful analytics.

For further information on SQL Server, you can check the official Microsoft site here.

Introduction to Tableau

Tableau Logo.

Tableau is a powerful business intelligence tool used to turn raw data into an understandable format. It is a tool popularly used to visualize data and can be understood even by a non-technical user. 

It creates visualizations with the help of dashboards and worksheets, helping users perform real-time analysis in a very fast and secure manner. It doesn’t require a user to have any programming skill or technical background to operate it.

For further information on Tableau, you can check the official site here.

Methods to connect SQL Server to Tableau

Method 1: Using Tableau’s SQL Server Connector 

Tableau’s in-built SQL Server connector conveniently establishes a connection with SQL Server. You can easily set up a data source and use Tableau to visualize your data to perform a fruitful analysis for your business. This method requires you to install the SQL Server ODBC driver.

Method 2: Using Hevo, A No-Code Data Integration Platform

Use Hevo, a No-Code Data Integration Platform to connect SQL Server with various other marketing applications to bring in integrated data in a matter of minutes and visualize it in your desired BI tool such as Tableau. It is the ideal solution for creating a single source of truth for marketing, that too without writing a single line of code. Its fault-tolerant architecture ensures that the data is handled in a secure, consistent manner with zero data loss.

Visit our Website to Explore Hevo

Connect SQL Server to Tableau in just a few clicks and achieve success today! Sign Up here for a 14-day free trial!

Prerequisites

  • Working knowledge of SQL Server.
  • Working knowledge of Tableau.
  • Tableau installed at the host workstation.
  • Permission to access the SQL Server database.

Methods to connect SQL Server to Tableau

There are many ways in which you can connect SQL Server to Tableau:

Download the Whitepaper on Automating Data Integration
Download the Whitepaper on Automating Data Integration
Download the Whitepaper on Automating Data Integration
Learn the key benefits of automating Data Integration

Method 1: Using Tableau’s SQL Server Connector

Tableau’s in-built SQL Server connector conveniently establishes a connection with SQL Server. You can easily set up a data source and use Tableau to visualize your data to perform a fruitful analysis for your business.

This method requires you to install the SQL Server ODBC driver. The ODBC driver allows tableau to interact with data stored in your SQL Server database and hence perform analysis easily. The SQL Server driver comes installed by default with Tableau v9.3 and above. Users supporting any previous versions on their system can download the driver from the official site here.

This can be implemented using the following steps:

Step 1: Configuring Tableau

Launch Tableau on your workstation and select SQL Server from the connect column on the left. This will open a dialogue box where you need to provide the connection details for SQL Server.

Seclecting the SQL Server connector.

To connect with tableau, you will need to provide information about the server which hosts your database. If you want to connect to a contained database, you can also specify the name of the database.

To connect with a port other than the default port, you need to specify the port and server as follows:

<server_name><port_number>

Example query:  my_server 8051

There are two ways in which you can sign-in to the server, either by using Windows authentication or by using the username and password. Using the username and password becomes a must if you’re working with a password-protected server in a non-Kerberos environment.

Configuring the SQL Server Connector.

Click on Sign in to establish a connection. This will enable a connection without SSL. To establish an SSL enabled connection, click the Require SSL checkbox before you sign in.

SQL Server provides an option to let the user queries access the modified rows even before they have been committed. This option is called Read Uncommitted data. It saves time by preventing complex queries such as extract refreshes from locking the database and causing a delay. If this option is unchecked, Tableau makes use of default isolation levels.

If you want to run a specific SQL command every-time a new connection is established, you can use the Initial SQL option. This will open a dialogue box, where you can specify your desired SQL query.

Initial SQL

For further information on Initial SQL command, you check the official site here.

Step 2: Configuring Data Source

The data source page loads up after configuring the Tableau connector and successfully signing in. This is how the page looks like:

Tableau Workspace.

Select the data source name option and give a unique name to the database you are using. It’s considered a good practice to have a unique name as it makes it much easier for users to identify the database from which data is being fetched.

To select the desired schema, you can use the schema drop-down list from the column on the left. You can also perform a text-based search to find the desired option. Now similarly find and select the desired table and drag it onto the canvas.

Tables in Tableau.

This is how you can connect SQL Server with Tableau. Now click on the sheets tab to begin the analysis.

Custom SQL features can be used to focus on specific SQL statements, rather than querying the entire database. Click on the Custom SQL option from the panel on the left. A new dialogue box will now open up, where you can provide the query you want to execute.

Custom SQL.

You can learn more about using Custom SQL here.

Some Limitations of This Method: 

  • This method requires installing the SQL Server ODBC driver beforehand.
  • Fields having the Time data type aren’t imported by Tableau, due to a lack of support.
  • Tableau often displays a “worksheet not available” error. This requires the user to sign-in multiple numbers of times to rectify it.

Method 2: Using Hevo, A No-Code Data Integration Platform

Say goodbye to the tedious challenges of unifying your marketing data! Use Hevo, a No-Code Data Integration Platform, to connect SQL Server with various marketing applications to bring in integrated data in a matter of minutes and visualize it in Tableau. It is the ideal solution for creating a single source of truth for marketing. Hevo is fully managed and completely automates the process of not only bringing in your data from multiple sources but also transforming it into a cleaned and analysis-ready form without having to write a single line of code. Its fault-tolerant architecture ensures that the data is handled in a secure, consistent manner with zero data loss.

Gone are the days of sitting down and manually optimizing your data to get rid of inconsistencies, silos, and managing data losses. Hevo takes care of all your data preprocessing needs and lets you focus on key business activities and develop a much powerful insight on how to generate more leads, retain customers, and take your business to new heights of profitability.

Check out what makes Hevo amazing:

  • Real-Time Data Transfer: Hevo with its strong integration with 100+ sources, allows you to transfer marketing data quickly & efficiently. This ensures efficient utilization of bandwidth on both ends.
  • Data Transformation: It provides a simple interface to perfect, modify, and enrich the marketing data you want to transfer. 
  • Secure: Hevo has a fault-tolerant architecture that ensures that the data is handled in a secure, consistent manner with zero data loss.
  • Simplicity: Using Hevo is easy and intuitive, ensuring that your data is exported in just a few clicks. 
  • Completely Managed Platform: Hevo is fully managed. You need not invest time and effort to maintain or monitor the infrastructure involved in executing codes.
  • Live Support: The Hevo team is available round the clock to extend exceptional support to its customers through chat, email, and support calls.

Steps to use Hevo:

Hevo focuses on three simple steps to get you started:

  1. Connect: Connect Hevo with SQL Server and various other sales & marketing data sources by simply logging in with your credentials.
  2. Integrate: Consolidate your marketing data from several sources in Hevo’s no-Code Data Integration Platform and automatically transform it into an analysis-ready form.
  3. Visualize: Connect Hevo with your desired BI tool such as Tableau and visualize your unified marketing data easily to gain better insights.

Conclusion

This article introduces you to the various methods that can be used to connect SQL Server to Tableau. It also provides in-depth knowledge about the concepts behind every step to help you understand and implement them efficiently. These methods, however, can be challenging especially for a beginner & this is where Hevo saves the day. Hevo, a No-Code Data Integration Platform helps you connect SQL Server to various marketing data sources and store integrated marketing data in one place and visualize it in Tableau. Hevo with its strong integration with 100+ sources & BI tools, allows you to not only export & load marketing data but also transform & enrich your data & make it analysis-ready in a jiffy. 

Want to take Hevo for a spin? Sign Up here for a 14-day free trial!

Tell us about your experience of connecting SQL Server to Tableau! Share your thoughts in the comments section below.

Divij Chawla
Marketing Operations and Analytics Manager, Hevo Data

Divij Chawla is interested in data analysis, software architecture, and technical content creation. With extensive experience driving Marketing Operations and Analytics teams, he excels at defining strategic objectives, delivering real-time insights, and setting up efficient processes. His technical expertise includes developing dashboards, implementing CRM systems, and optimising sales and marketing workflows. Divij combines his analytical skills with a deep understanding of data-driven solutions to create impactful content and drive business growth.

Visualize Your SQL Server Data In Tableau Easily