Prepare to run the Microsoft SQL Server collector
Configure authentication and permissions before running the collector.
Before you begin
Role required: admin
About this task
The collector supports three authentication methods for Microsoft SQL Server. All methods require SELECT ON DATABASE permission for metadata access. VIEW DEFINITION permission is required for column-level lineage harvesting.
Procedure
Set up NTLM authentication
Create a service account and grant permissions for NTLM authentication.
Before you begin
Role required: admin
The computer running the collector must be attached to the Active Directory domain.
About this task
Configure NTLM authentication using an Active Directory service account with the minimum required permissions for metadata harvesting.
Procedure
What to do next
When configuring the collector, set these JDBC properties: integratedSecurity=true, authenticationScheme=NTLM
Set up username and password authentication for SQL Server collector
Create a SQL Server login and grant permissions for username and password authentication.
Before you begin
Role required: admin
About this task
Configure a SQL Server login with the minimum required permissions for metadata harvesting.
Procedure
What to do next
See the Microsoft SQL Server permissions documentation for more information about database permissions.
Set up Service Principal authentication
Register an Azure application and grant permissions for Service Principal authentication.
Before you begin
Role required: admin
About this task
Configure Microsoft Entra Service Principal authentication by registering an Azure application and granting database access.
Procedure
-
Register a new application in Azure.
-
Create a client secret.
- On the application page, select .
- Select New client secret.
- Add a description and set the expiration date.
- Select Add.
- Copy the secret value.
-
Grant the service principal access to SQL Server.
- In Azure Portal, navigate to your SQL Server instance.
- Select .
- Select Reader under the Job function roles tab.
- Select Next.
- For Assign access to, verify that User, group or service principal is selected.
- Select Select members.
- Search for your registered application name and select it.
- Select Review + assign.
-
Grant the service principal access to the database.
What to do next
See the Microsoft Entra authentication documentation for more information.
Set up permissions for harvesting SQL Server Agent jobs
Grant SQLAgentReaderRole permissions to harvest Agent job metadata.
Before you begin
Role required: sysadmin
About this task
To harvest SQL Server Agent job metadata, assign the SQLAgentReaderRole in the msdb system database.