An Azure relational database service.
Hi JK,
We would like to thank you for your feedback provided on survey. We found your recent engagement on this question was rated low. However, we are able to share some additional information. Would you please re-evaluate your feedback.
Using ActiveDirectoryInteractive triggers a login prompt with MFA every time because:
- The ODBC driver does not cache tokens persistently.
- The username format defaults to FirstnameLastname instead of ******@domain.com.
- There's no SSO context passed from Office apps like Teams or Outlook into the ODBC driver.
- The ODBC driver (even in version 17.6+) does not cache Entra ID tokens persistently
- ActiveDirectoryInteractive is designed for interactive use, not for seamless or silent SSO.
- The driver does not inherit SSO context from the OS or Office apps.
- The default behavior is not optimized for environments without full Active Directory federation or hybrid identity setup
Workarounds and Alternatives:
1.Use ActiveDirectoryIntegrated (if possible)
- If your environment supports it (i.e., domain-joined machines with hybrid Azure AD join), switch to:
Authentication=ActiveDirectoryIntegrated
- This mode attempts to use the current Windows session for authentication and avoids repeated MFA prompts.
2.Use ActiveDirectoryPassword with Secure Credential Storage
- If you must use username/password, consider:
Authentication=ActiveDirectoryPassword
UID=******@domain.com
PWD=yourpassword
This avoids the MFA prompt but is less secure unless paired with secure credential storage.
3.Use SQL Authentication
- As you noted, if integrated auth is too cumbersome, SQL logins may be a more practical alternative for now.
Hope this helps. Do let us know if you any further queries.
If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.