Microsoft SQL Server Authentication¶
Qualytics signs in to SQL Server with the identity set in the Authentication section of the connection form. Every query runs as that identity, so SQL Server uses its permissions to decide what Qualytics may read or write (see Permissions). The Type field selects the method, and Username & Password is the default.
Username & Password¶
With Username & Password (BASIC in the API), Qualytics signs in with a SQL Server login: fill in User and Password. Use a dedicated login for Qualytics, so its permissions and its sign-ins are easy to tell apart from people's.
Service Principal¶
With Service Principal (SERVICE_PRINCIPAL in the API), Qualytics signs in through Microsoft Entra ID as an application instead of a login. Fill in:
| Field | Where it comes from |
|---|---|
| Client ID | The application (client) ID of the Microsoft Entra ID app registration. Sent as username in the API. |
| Client Secret | A client secret created on that app registration. Sent as password in the API. |
| Tenant ID | The Microsoft Entra ID tenant the app registration belongs to. |
Add the service principal to the database as an external user and give it the same Permissions a login would need. This suits unattended access, since the sign-in is not tied to a person's account.
Warning
Client secrets expire on the date chosen when they are created. When the secret expires, the connection fails until you create a new secret and update the connection.
Credentials from a secrets manager
Any credential field can take its value from HashiCorp Vault or another secrets manager instead of being typed in: turn on Secrets Management on the connection and write ${key} in the field. See the HashiCorp Vault pages for setup and troubleshooting.