This article covers:
To establish a connection to an Azure Synapse database, navigate to the Connections page, select New Connection, then Zure Synapse from the New Connection modal:
You will be prompted to provide the following connection details to establish a connection to your Synapse database:
Please refer to the examples in our developer documentation to find out how to create a connection to an Azure Synapse via our API.
Notes: To ensure secure access to your Synapse database, it is recommended to whitelist Luzmo's range of IP addresses. You should whitelist Luzmo's range of IP addresses as described here.
Once you have connected your Synapse you can add datasets as explained here.
{{metadata.< parameter name >|< default value >}}. Find out more about parameterized SQL Datasets.Also make sure to check out this article on Preparing your data for analytics.
To find out how to add datasets using our API, please refer to the examples in our developer documentation.
When generating an Authorization token to grant a user acces to your embedded dashboards it is possible to override the data source properties in the authorization request to dynamically use different properties. Find out more about connection overrides.
The fields available for overriding a Synapse connection are as follows:
Our developer documentation has more info about connection overrides and examples of Synapse connection overrides.
Example code demonstrating how to override a Synapse connection:
import Luzmo from '@luzmo/nodejs-sdk';
const client = new Luzmo({
api_key: '<your Luzmo API key>',
api_token: '<your Luzmo API token>',
host: 'https://api.luzmo.com:443'
});
const response = await client.create('authorization',
{
type: "embed",
username: "< A unique and immutable identifier for your user >",
name: "< user name >",
email: "< user email >",
suborganization: "< a suborganization name >",
access: {
collections: [
{
id: "<collection_id>",
inheritRights: "use"
}
]
},
account_overrides: {
<your connection_id>: {
host: "<The new database host URL to connect to>",
user: "<username>",
password: "<password>"
}
}
}
);
| Data Type in SQL Server | Data Type in Luzmo |
|---|---|
| bigint | numeric |
| binary | hierarchy |
| bit | hierarchy |
| char | hierarchy |
| nchar | hierarchy |
| date | datetime |
| datetime | datetime |
| datetime2 | datetime |
| datetimeoffset | datetime |
| decimal | numeric |
| float | numeric |
| int | numeric |
| money | numeric |
| ntext | hierarchy |
| numeric | numeric |
| nvarchar | hierarchy |
| real | numeric |
| rowversion | numeric |
| smalldatetime | datetime |
| smallint | numeric |
| smallmoney | numeric |
| text | hierarchy |
| time | datetime |
| timestamp | datetime |
| tinyint | numeric |
| uniqueidentifier | hierarchy |
| varbinary | hierarchy |
| varchar | hierarchy |
| xml | hierarchy |
| hierarchyid | hierarchy |