Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2025
    Posts
    1

    ODBC Driver 18 and MFA (multifactor authentication)

    Has anyone ever managed to connect to SQL using ODBC and MFA?

  2. #2
    NDC is offline Novice
    Windows 11 Office 365
    Join Date
    Sep 2025
    Posts
    1
    Yes, you need to use ActiveDirectoryInteractive as your Authentication method

    (eg) Here is the connection string for connecting to a SQL Azure db - replace myservername with the name of your server and MyDatabaseName with the name of your database on that server

    ODBC;DRIVER=ODBC Driver 18 for SQL Server;SERVER=myservername.database.windows.net;DA TABASE=MyDatabaseName;Authentication=ActiveDirecto ryInteractive;Encrypt=yes;TrustServerCertificate=n o;Connection Timeout=30;

    If you are interested in ADO - this is using m365 login
    Provider=MSOLEDBSQL19;Data Source=.myservernamedatabase.windows.net;Initial Catalog=MyDatabaseName;Authentication=ActiveDirect oryInteractive;Encrypt=Yes;TrustServerCertificate= No;Connect Timeout=30;User ID=myname@mytenant.com;

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 2
    Last Post: 08-07-2025, 02:24 AM
  2. Replies: 5
    Last Post: 03-30-2020, 05:31 PM
  3. Windows 7 X64 ODBC Driver and Access 2010
    By tcheck in forum Access
    Replies: 6
    Last Post: 11-01-2011, 08:22 AM
  4. Qucik question about the ODBC driver
    By baseborn in forum Access
    Replies: 1
    Last Post: 12-14-2010, 06:11 AM
  5. Replies: 3
    Last Post: 10-11-2010, 10:23 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums