Skip to main content

Set up Microsoft SQL Server

Setting up Microsoft SQL Server authentication enables Atlan to securely connect to your database and extract metadata. This process configures the necessary credentials and permissions for Atlan to discover and catalog your SQL Server assets.

Prerequisites

Before you begin, make sure you have:

  • Administrative access to your Microsoft SQL Server instance or contact with your SQL Server administrator
  • Access to Microsoft Entra ID with Application Administrator or Cloud Application Administrator permissions (required for service principal authentication only)

Set up authentication

Atlan supports two authentication methods for fetching metadata from Microsoft SQL Server. Choose the method that best fits your organization's security requirements:

Use SQL Server native authentication with username and password credentials.

  1. Create a login with a specific password to integrate into Atlan:

    CREATE LOGIN <login_name> WITH PASSWORD = '<password>';
    • Replace <login_name> with the name of the login.
    • Replace <password> with the password for the login.
  2. Create a user for that login:

    CREATE USER <username> FOR LOGIN <login_name>;
    • Replace <username> with the username to use when integrating Atlan.
    • Replace <login_name> with the name of the login used in the previous step.
  3. Grant permissions for crawling assets and mining view lineage** (minimum required permissions):

    GRANT VIEW DEFINITION ON DATABASE::<database_name> TO <username>;
    • Replace <database_name> with the name of the database.
    • Replace <username> with the username you created.
  4. Grant additional permissions to preview and query assets:

    GRANT SELECT ON DATABASE::<database_name> TO <username>;
    • Replace <database_name> with the name of the database.
    • Replace <username> with the username you created.
warning

You must grant permissions to the user for all the databases you want to crawl in Atlan except the system databases (master, tempdb, msdb, model). The Microsoft SQL Server crawler only fetches database and schema names without these permissions and no other metadata for other asset types.

Next steps

Once you have configured authentication and permissions: