Skip to main content

[en] Azure Active Directory Password-based Authentication

[en] This article shows how to authenticate with a username and password.

[en] Common Prerequisites

  • [en] Available account in Azure Active Directory.

  • [en] Available Azure MS SQL server.

  • [en] Azure Active Directory is set to centrally manage identity and access to Azure SQL Database.

  • [en] Installed MS ODBC Driver for SQL Server. The current version is 17.

[en] DSN Connection

[en] You can connect with DNS using Data Connection Manager (DCM) or without it.

[en] Prerequisites: User or System DSN is configured in ODBC data source manager to use Azure Active Directory Password authentication.

DNS Settings

[en] DSN Connection without DCM

  1. [en] Place the Input Data tool on the Designer canvas.

  2. [en] Select the down arrow in the Connect a File or Database field.

  3. [en] From Data Sources, choose Microsoft Azure SQL Database - ODBC.

    MSQL ODBC
  4. [en] Choose DSN created in the preconditions from the dropdown.

  5. [en] Provide Username and Password and select OK.

    Provide username and password
  6. [en] Choose any table from your database in the Query Builder.

  7. [en] Select OK.

[en] DSN Connection Using DCM

  1. [en] Make sure that DCM is enabled.

  2. [en] Place the Input Data tool on the Designer canvas.

  3. [en] Below Connect a File or Database field, select Set Up a Connection.

  4. [en] From Data Sources, choose Microsoft Azure SQL Database - ODBC.

  5. [en] Provide data source details and select Save.

  6. [en] ODBC DSN should have the name of DSN created in ODBC Data Sources.

    ODBC DNS
  7. [en] Select Connect Credential.

  8. [en] Choose the User name and password authentication method credential type.

  9. [en] Select Link or Create and Link.

  10. [en] Select Create New Credential for the Credential.

  11. [en] Enter a descriptive name for Credential, User name and Password, and select Create and Link.

    Descriptive name
  12. [en] Select Connect.

    Click Connect
  13. [en] Choose any table from your database in the Query Builder.

  14. [en] Select OK.

[en] DSN-less Connection

[en] You can establish a DSN-less connection using Data Connection Manager (DCM) or without it.

[en] DSN-less Connection without DCM

  1. [en] Place Input Data tool on Designer canvas

  2. [en] Enter this connection string to Connect a File or Database field:

    [en] odbc:Driver={ODBC Driver 17 for SQL Server};Server=tcp:<_your_server_>,1433;Database=<_your_db_>;Uid=<_user_name_>;Pwd=<_your_pw_>;Encrypt=yes;TrustServerCertificate=no;Connection Timeout=30;Authentication=ActiveDirectoryPassword

    [en] Replace text between <> with actual values.

  3. [en] Select the 3 dot icon next to the Table or Query option.

  4. [en] Choose any table from your database in the Query Builder.

  5. [en] Select OK.

[en] DSN-less Connection Using DCM

  1. [en] Make sure that DCM is enabled.

  2. [en] Place the Input Data tool on the Designer canvas.

  3. [en] Below the Connect a File or Database field, select Set Up a Connection.

  4. [en] Choose Microsoft SQL Server - Quick connect from Data Sources.

  5. [en] Select the Add Data Source button.

  6. [en] Provide a descriptive name for Data Source Name, actual server, and database name.

  7. [en] Make sure the Driver is set to ODBC Driver 17 for SQL Server.

  8. [en] Select the Save button.

    ODBC Driver
  9. [en] Select Connect Credential.

    Click Connect
  10. [en] Choose the Azure Active Directory Password authentication credential.

  11. [en] Select Create New Credential for the Credential.

  12. [en] Enter a descriptive name for Credential, User name, and Password and select Create and Link.

    Enter a name
  13. [en] Select Connect.

    Click Connect
  14. [en] Select any table from your database in the Query Builder.

  15. [en] Select OK.