Tableau Public Sql

This article describes how to connect Tableau to a PostgreSQL database and set up the data source.

  1. Tableau Public Connect To Sql Server
  2. Tableau Public Sql
  3. Tableau Public Sql
  4. Tableau Public Api
  5. Tableau Sql Statement
  6. Get Sql From Tableau
  7. Tableau Public Connect To Sql Server

Tableau Public Connect To Sql Server

Before you begin

Before you begin, gather this connection information:

  • Name of the server that hosts the database you want to connect to

  • Database name

  • Authentication method: Integrated Authentication or user name and password

  • Are you connecting to an SSL server?

  • (Optional) Initial SQL statement to run every time Tableau connects

Select Data New Data Source and choose your desired data source. In the Server Connection dialog box, choose Initial SQL. Enter your CTE in the Initial SQL field. The example below uses a recursive self-join on 'Employees' table to build out an employee reporting hierarchy using a common table expression named OrganizationChart.

Driver required

This connector requires a driver to talk to the database. You might already have the required driver installed on your computer. If the driver is not installed on your computer, Tableau displays a message in the connection dialog box with a link to the Driver Download(Link opens in a new window) page where you can find driver links and installation instructions.

Note: Beginning with Tableau 2020.4, you can connect to PostgreSQL 12 (or higher) databases from Tableau. A new JDBC driver for PostgreSQL supports these connections and is included with all Tableau products on Windows.
On Linux and Mac computers, you'll need to install a driver for this connector when you use it with Tableau Desktop or Tableau Prep Builder. See instructions on the Driver Download(Link opens in a new window) page.

Make the connection and set up the data source

Tableau

How to extract and interpret data from Microsoft SQL Server so that it can be loaded into the analysis tool Tableau and analyzed. Once Microsoft SQL Server data is available in Tableau, we provide instructions for building custom reports based on that data and sharing them throughout your organization. Feed Tableau analytics with dynamic predictive intelligence and connect Einstein predictions directly into Tableau calculated fields. Construct, share, and scale interactive visualizations and dashboards incorporating dynamic predictions using existing Tableau infrastructure, and test new scenarios using Tableau parameters.

Tableau Public Sql

  1. Start Tableau and under Connect, select PostgreSQL. For a complete list of data connections, select More under To a Server. Then do the following:

    1. Enter the name of the server that hosts the database that you want to connect to.

    2. Enter the name of the database.

    3. Select how you want to sign in to the server. Specify whether to use Integrated Authentication or User Name and Password. If the server is password protected, and you are not in a Kerberos environment, you must enter the user name and password.

      Note: If you're using a Mac, and it is not attached to the domain correctly, the Mac won't know that Kerberos is being used in the domain, and the Authentication drop-down list won't be available.

      Select the Require SSL check box when connecting to an SSL server.

    4. (Optional) Select Initial SQL to specify a SQL command to run at the beginning of every connection, such as when you open the workbook, refresh an extract, sign in to Tableau Server, or publish to Tableau Server. For more information, see Run Initial SQL.

    5. Select Sign In.

      If Tableau can't make the connection, verify that your credentials are correct. If you still can't connect, your computer is having trouble locating the server. Contact your network administrator or database administrator.

  2. On the data source page, do the following:

    1. (Optional) Select the default data source name at the top of the page, and then enter a unique data source name for use in Tableau. For example, use a data source naming convention that helps other users of the data source figure out which data source to connect to.

    2. Under Table, select a table or use the text box to search for a table by name.

      Starting with Tableau version 2019.2, you can connect to spatial columns. For more information, see Connect to Spatial Data in a Database.

    3. Drag the table to the canvas, and then select the sheet tab to start your analysis.

      Use custom SQL to connect to a specific query rather than the entire data source. For more information, see Connect to a Custom SQL Query.

Sign in on a Mac

If you use Tableau Desktop on a Mac, when you enter the server name to connect, use a fully qualified domain name, such as mydb.test.ourdomain.lan, instead of a relative domain name, such as mydb or mydb.test.

Alternatively, you can add the domain to the list of Search Domains for the Mac computer so that when you connect, you need to provide only the server name. To update the list of Search Domains, go to System Preferences > Network > Advanced, and then open the DNS tab.

See also

  • Set Up Data Sources – Add more data to this data source or prepare your data before you analyze it.
  • Build Charts and Analyze Data – Begin your data analysis.
Thanks for your feedback!

If you maintain SQL-based data on a cloud platform, you can use direct connections to that data when you publish workbooks and data sources to Tableau Online. When you use a direct connection, you do not need to publish a static extract of the data. Instead, depending on the underlying data type, you can determine how to keep the data current: through a live connection or refreshing an extract on a schedule. You can also require users to provide credentials for accessing the data when they open views that connect to content.

In this context, the term cloud platform means that the service is available on the public internet. Cloud platforms can include Amazon Web Services, Microsoft Azure, Google Cloud Platform, and so on.

Support for direct connections to data hosted on cloud platforms

The list below includes both live connection and extract refresh support specifically for SQL-based data hosted on a cloud platform.

Note: Make sure that Tableau Online is on your data provider's authorized list (safe list). For more information, see Tableau Online IP addresses for data provider authorization.

Encrypting connections using SSL is an option for these underlying data types. For more information, see Enable encrypted connections later in this topic.

Supported connectors

Note: Not all connectors in this list are supported by Tableau Prep Conductor. To see the supported list of connectors, open Tableau Prep Builder and expand the Connect pane.

  • Amazon Athena

  • Amazon Aurora for MySQL

  • Amazon EMR Hadoop Hive

  • Amazon Redshift

  • Azure Synapse Analytics* (SQL Server-compatible)
    (*formerly known as: Azure SQL Data Warehouse, Azure SQL Database)

  • Cloudera (Hive, Impala)

  • Databricks

  • Denodo

  • EXASOL (EXASolution)

  • Google BigQuery, Google Sheets

  • Google Cloud SQL (MySQL-compatible)

  • Hortonworks Hadoop Hive

  • MapR Hadoop Hive

  • Microsoft SQL Server

  • MongoDB BI Connector

  • MySQL

  • Oracle

  • PostgreSQL

  • SAP HANA

  • SingleStore (formerly MemSQL)

  • Snowflake

  • Spark SQL

  • Presto

  • Teradata

  • Vertica

Notes:

Tableau Public Sql

  • MongoDB BI Connector requires SSL. Tableau doesn’t support MongoDB Connector for BI authentication plugins.

  • For more information about supported features by connector, refer to the specific connector topic in the Supported Connectors section of the Tableau User Help.

Enable encrypted connections

Tableau Public Api

You can enable SSL encryption for connections to your hosted SQL data. You do this when you create the connection in Tableau Desktop.

Notes:

  • This information does not apply to Google BigQuery, which connects over HTTPS by default and uses OAuth for authentication.

  • Tableau Online does not currently support SSL using Google Cloud SQL.

  1. In Tableau Desktop, connect to the data.

  2. In the Server Connection dialog box, select the Require SSL check box.

  3. For PostgreSQL and SQL Server-compatible connections click OK to complete the steps.

    For some MySQL-compatible connections, linked text appears under the Require SSL check box. This indicates that you can specify an alternative certificate file to use, such as a self-signed certificate.

  4. (Optional) Use a self-signed or other custom certificate to connect to this data over SSL.

    Note: This step does not apply to Google BigQuery, because it uses OAuth for authentication to the server.

    1. Select the link text that appears.

    2. In the Configure and Use SSL Certificate dialog, specify the certificate’s .pem file.

      For example, for MySQL connections to data hosted on Amazon RDS, you can point to Amazon’s self-signed certificate file at this address.

      Note: If you plan to publish with an SSL connection that uses a self-signed or other custom certificate, test your configuration to make sure it works as expected. For some configurations, Tableau Online supports only certificates that are signed by a publicly trusted certificate authority, such as Verisign, Thawte, GlobalSign, and so on.

Tableau Sql Statement

See also

Get Sql From Tableau

  • Connector Examples(Link opens in a new window) in the Tableau Help

Tableau Public Connect To Sql Server

Thanks for your feedback!