Establishes a reliable bridge between Microsoft SQL Server and Tableau for live analytics or extracts.
Install the latest Microsoft ODBC Driver 18 (or higher), ensure the SQL Server port (1433) is open, and verify the user has SELECT rights on the target database.
Open Tableau Desktop → Connect pane → Microsoft SQL Server. In the dialog, provide Server, optional Port, an authentication method, and the target Database. Click Sign In.
Select Live for real-time dashboards; select Extract when performance or offline access matters. Extracts cache query results and reduce load on SQL Server.
Click New Custom SQL. Paste your query that joins Customers
, Orders
, and OrderItems
. Tableau treats the result as a virtual table you can visualize instantly.
Create a Tableau parameter (e.g., Select Year) and bind it in Custom SQL with a WHERE clause. Tableau only queries rows that match the chosen year, cutting scan time.
Index frequently filtered columns (Orders.order_date
, Customers.id
). Avoid SELECT *. Return only needed fields. Aggregate at the lowest useful grain before data reaches Tableau.
After building the workbook, choose Server → Publish Data Source. Enable Embedded Credentials or Prompt User depending on security policy. Test connection on Tableau Server.
Yes. Use the same connector; provide the fully-qualified Azure SQL hostname and enable Encrypt=yes.
Absolutely. Choose Use Windows Authentication in the sign-in dialog. Tableau passes your Kerberos ticket to SQL Server.
Publish the workbook to Tableau Server or Tableau Cloud and schedule an Extract Refresh. Ensure the server’s Run As account can reach SQL Server.