Create an Azure SQL database connection
To access your data stored on an Azure SQL database, you will need to know the server and database name that you want to connect to, and you must have access credentials. Once you have created a connection to an Azure SQL database, you can select data from the available tables and then load that data into your app or document.
In Qlik Sense, you connect to a Microsoft Azure database through the Add data dialog or the Data load editor.
Setting up the database properties
Database property | Description | Required |
---|---|---|
Direct Gateway |
This field will only appear if you selected the "via Direct Access gateway" data connection. Select the data gateway through which you need to connect to your data source. Information noteUsers that need to leverage gateway-enabled data connections must have the Can Consume Data permission for the space in which the gateway resides.
|
Yes |
Server | Host name to identify the location of the Azure SQL database | Yes |
Port | TCP server port for the Azure SQL database | Yes |
Database | The name of the Azure SQL database | Yes |
Authenticating the driver
You have the following options to authenticate the driver in Qlik Sense:
-
Azure SQL credentials
-
Azure OAuth
-
Azure Active Directory
Qlik Sense: Azure SQL credentials
Authentication property | Description | Required |
---|---|---|
Authentication mechanism | Select SQL Server Authentication. | Yes |
User name | User name for the Azure SQL connection. | Yes |
Password | Password for the Azure SQL connection. | Yes |
Qlik Sense: Azure OAuth authentication
You can authenticate using OAuth 2.0. You need an authentication pin to authenticate via OAuth:
Do the following:
-
Under Authentication, select Azure OAuth.
-
Fill in Tenant ID, Client ID, and Client Secret.
-
Click the Authenticate button in the Credentials section under Account properties. A new window opens.
-
Copy the Authentication code. Go back to the connection creation dialog.
-
Under Complete authentication with the PIN provided by the source, paste the authentication pin. Click Verify.
Authentication property | Description | Required |
---|---|---|
Authentication Mechanism |
Select Azure OAuth. Information noteWhen using Direct Access gateway, Azure OAuth authentication requires Direct Access gateway 1.6.6 or later.
|
Yes |
Tenant ID | The Azure AD tenant to use for authentication. It is also referred to as the directory ID. | Yes |
Client ID | The client ID when configuring the Azure AD OAuth authorization server. | Yes |
Client Secret | The client secret when configuring the Azure AD OAuth authorization server. This needs to be inputted every time the connection needs to be re-authenticated. | Yes |
Azure SQL database configuration for OAuth
Your Azure SQL database must be configured to use OAuth. The process is described in Microsoft documentation:
Quickstart: Register an application with the Microsoft identity platform
When configuring the OAuth authorization server, the redirect_uri must be set to: https://connector.qlik.com/auth/oauth/v2.htm
Qlik Sense: Azure Active Directory authentication
You can authenticate using Azure Active Directory.
Authentication property | Description | Required |
---|---|---|
Authentication mechanism |
Select Azure Active Directory. Information noteWhen using Direct Access gateway, Azure Active Directory authentication requires Direct Access gateway 1.6.6 or later.
|
Yes |
User name | User name in Azure Active Directory. | Yes |
Password | Password in Azure Active Directory. | Yes |
Account properties
Credentials
Credentials are used to prove that a user is allowed to access the data in a connection.
There are two types of credentials that can be used when making a connection in Qlik Sense SaaS. If you leave the User defined credentials check box deselected, then only one set of credentials will be used for the connection. These credentials belong to the connection and will be used by anyone who can access it. For example, if the connection is in a shared space, every user in the space will be able to use these credentials. This one-to-one mapping is the default setting.
If you select User defined credentials, then every user who wants to access this connection will need to input their own credentials before selecting tables or loading data. These credentials belong to a user, not a connection. User defined credentials can be saved and used in multiple connections of the same connector type.
In the Data load editor, you can click the underneath the connection to edit your credentials. In spaces or Data manager, you can edit credentials by right-clicking on the connection and selecting Edit Credentials.
See which authentication type applies on each connector's page.
Account property | Description |
---|---|
User defined credentials | Select this check box if you want users that access this connection to have to input their own credentials. Deselect this check box if credentials can be shared with anyone who has access to this connection. |
New credentials | Drop-down menu item that appears if User defined credentials is selected. |
Existing credentials | Drop-down menu item that appears if User defined credentials is selected. |
User | User name for the connection. |
Password | Password for the connection. |
Credentials name | Name given to a set of user defined credentials. |
Load optimization settings
Property | Description | Required |
---|---|---|
Max String Length |
Maximum length of string fields. This can be set from 256 to 16384 characters. The default value is 4096. Setting this value close to the maximum length may improve load times, as it limits the need to allocate unnecessary resources. If a string is longer than the set value, it will be truncated, and the exceeding characters will not be loaded. |
No |
Advanced options
Property | Description | Required |
---|---|---|
Name |
Name of the custom property. You can add additional properties by clicking the . |
No |
Value |
Value of the property. |
No |