Add an Azure Synapse connection
Configuring OAuth
If you plan to use OAuth with Synapse, you must configure it before you can create a connection. For details, see Configure OAuth for a Synapse connection.
Adding a Synapse connection
To add a connection to Synapse:
-
Navigate to Data workspace > Connections.
-
Click + Create connection, and select the Synapse tile. Then click Next.
-
Create a name for your connection, a description (optional), select Use Service Account or Use OAuth, and enter the connection details for your Synapse data source. Then click Next.
To use SQL Server with your Synapse connection, select Use Service Account.
For Service Account authentication, do the following:
-
Enter Host, Port, User, Password, and Database.
SQL Server configurationIf you are using SQL Server, do the following:
-
For Port, enter 1433.
-
For User, enter the login for your SQL Server database.
For OAuth authentication, do the following:
-
Enter Host, Port, OAuth Client ID, OAuth Client Secret, Scope, Auth Url, Access token Url, and Database.
Refer to the Synapse connection reference for more information on each of the specific attributes you must enter for your connection.
-
-
-
(Optional) Provide additional key-value pairs that you need to set up your connection to Synapse or customize additional JDBC parameters supported by Synapse, by doing the following:
-
Select the Advanced Config menu to reveal the Key and Value fields.
-
Enter your key and value information. Refer to Synapse’s JDBC driver reference documentation for information on Synapse’s supported keys and values.
-
To add more keys and values, select the plus sign (+), and enter them.
-
Any key-value pairs that you enter must be defined in your Synapse data source. Key-value pairs are case-sensitive.
-
If you want to save your connection without selecting tables, click Save and exit. ThoughtSpot saves your connection and you are returned to the Data workspace. You can edit the connection later to add tables and columns.
-
-
Select tables and the columns from each table, and then click Create connection.
A message appears indicating the number of tables and columns that will be added to your connection.
After you add the connection, you can search your Synapse database right away by selecting Search now.
Your new connection appears on the Data workspace > Connections page. You can select the name of your connection to view the tables and columns in your connection.
The connection you just created is a link to the external data source. If there are any joins in the selected tables of the external data source, those are imported into ThoughtSpot.
You can now perform a live query on the selected tables and columns of your connection. Because the selected tables and columns in your connection are linked, it may take a while to initially render the search results. This is because ThoughtSpot does not cache linked data. With linked data, ThoughtSpot queries the external database directly, which is slower than querying data that is stored in ThoughtSpot’s database.
Related information