296
Views
6
Comments
Setting Up Connection to SQL Database Using Active Directory-Password Authentication

Hello,

I need to fetch data in my client SQL Database, one of their database required "Active Directory - Password" Authentication to Log In. When I try to set up a database connection in the Service Center it gave me error message "Connection String test failed: Cannot open server " *client domain name* " requested by the login.  The login failed."

How to solve this?

2019-09-24 18-41-25
Jorge Martins
 
MVP

Hi Kevin Wie,

You may want to check this post or this post for examples of Connection Strings that should work with Azure's Active Directory - Password authentication. You can use the details explained there to tweak the connection string used by your Database Connection (you will likely need to choose Advanced in the Database Connection configurations.

This document also has a section on connection to Azure SQL using AD.

I found this page on Microsoft's documentation about the connection properties it supports (might be useful even if it is for Java/JDBC).

Hope these help

2019-08-14 06-23-18
Wenchester

Jorge Martins wrote:

Hi Kevin Wie,

You may want to check this post or this post for examples of Connection Strings that should work with Azure's Active Directory - Password authentication. You can use the details explained there to tweak the connection string used by your Database Connection (you will likely need to choose Advanced in the Database Connection configurations.

This document also has a section on connection to Azure SQL using AD.

I found this page on Microsoft's documentation about the connection properties it supports (might be useful even if it is for Java/JDBC).

Hope these help

Hello Jorge,

Now i got this error

Connection String test failed: Unable to load adalsql.dll (Authentication=ActiveDirectoryPassword). Error code: 0x2. For more information, see http://go.microsoft.com/fwlink/?LinkID=513072


Which I already tried to reinstall the adasql and check the registry but still get this error.

2019-09-24 18-41-25
Jorge Martins
 
MVP

Kevin Wie wrote:

Hello Jorge,

Now i got this error

Connection String test failed: Unable to load adalsql.dll (Authentication=ActiveDirectoryPassword). Error code: 0x2. For more information, see http://go.microsoft.com/fwlink/?LinkID=513072


Which I already tried to reinstall the adasql and check the registry but still get this error.

This needs to be installed on the platform server, not your personal computer.


2019-08-14 06-23-18
Wenchester

Jorge Martins wrote:

Kevin Wie wrote:

Hello Jorge,

Now i got this error

Connection String test failed: Unable to load adalsql.dll (Authentication=ActiveDirectoryPassword). Error code: 0x2. For more information, see http://go.microsoft.com/fwlink/?LinkID=513072


Which I already tried to reinstall the adasql and check the registry but still get this error.

This needs to be installed on the platform server, not your personal computer.


So, I need to file a support ticket then.

Thanks Jorge


UserImage.jpg
Sreejith Narayanan

Did installing the dll  in platform server solved the issue?

2024-08-27 06-16-46
Houman Maukon Mohebbi

Did this get solved? Can you please share the format used for connection string syntax used for Azure AD using Azure AD Password auth.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.