Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

configure ODBC to connect to Dynamics CRM

(0) ShareShare
ReportReport
Posted on by

Hi there,

I'm trying to configure ODBC to connect to Dynamics CRM but I'm getting error like "Error - Invalid table name syscharsets for schema sys"

Is there anyone can help

  • CU16040426-0 Profile Picture
    2 on at
    configure ODBC to connect to Dynamics CRM
    @ken hubbard, does this work with Service principal and client credentials like secret or certs? 
  • Dallie Profile Picture
    10 on at
    RE: configure ODBC to connect to Dynamics CRM

    Hi,

    Someone help me, I'm trying to create an ODBC to connect to Dynamics and I'm not successful

    pastedimage1683831887056v5.png

    pastedimage1683831931433v6.png

    pastedimage1683831942906v7.png

    pastedimage1683832035046v8.png

    pastedimage1683832094427v9.png

  • MichaelTomar Profile Picture
    65 on at
    RE: configure ODBC to connect to Dynamics CRM

    As an alternative, you can use Skyvia to connect to Dynamics 365 via ODBC using their Skyvia Connect product

  • Ken Hubbard Profile Picture
    on at
    RE: configure ODBC to connect to Dynamics CRM

    Hello Kader,

    Glad I could help.

    Cheers,

    Ken

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: configure ODBC to connect to Dynamics CRM

    Thanks Ken, it was very helpful.

    Kader

  • Ken Hubbard Profile Picture
    on at
    RE: configure ODBC to connect to Dynamics CRM

    Hello Kader, 

    The following answer is stated under the assumption that you are trying to connect to the TDS / Dataverse endpoint to connect to the data:

    I was testing this and using the supported authentication method. 

    The specific section identifying the auth requirements here:

    https://docs.microsoft.com/en-us/power-apps/developer/data-platform/dataverse-sql-query#authentication 

    When you are creating an ODBC connection we need to used 'AAD with MFA' . I noticed there is not a value that specifically states 'AAD with MFA'. However, I found the following documentation:

    Using Azure Active Directory with the ODBC Driver - ODBC Driver for SQL Server | Microsoft Docs

    (Windows driver only.) Azure AD Interactive Authentication uses Azure Active Directory Multi-Factor Authentication technology to set up connection. In this mode, by providing the login ID, an Azure Authentication dialog is triggered and allows the user to input the password to complete the connection. The username is passed in the connection string. server=Server;database=Database;UID=UserName;Authentication=ActiveDirectoryInteractive;

    What this means is we need to use the following value when setting up the ODBC connection
    pastedimage1652812442623v1.png

    However, when I set this up and try to run the 'Test Connection' I get the same error:

    "Error - Invalid table name syscharsets for schema sys"

    In order to understand this exception we need to understand what 'syscharsets' means

    sys.syscharsets (Transact-SQL) - SQL Server | Microsoft Docs

    Basically, syscharsets is a standard SQL System view which would show up in any traditional MSSql database. However, the TDS / Dataverse connection to your organization is not a connection to a standard SQL database and this view does not exist.  With this in mind, I decided to query some data using the ODBC connection I created via powershell and found that the data extracted without error. This tells me that my ODBC connection is fine, but the Test Connection will never succeed due to the fact that the system view does not exist in the TDS/Dataverse connected organization. 

    My recommendation is to test your connection using Powershell. Here is a simple example I used replacing the sql text with:

    select auditretentionperiod from organization

    How to fetch data with ODBC DSN connections using ... - Qlik Community - 1712812 

     

    Thanks,
    Ken Hubbard

    Microsoft Dynamics Support

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 225 Super User 2025 Season 1

#2
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 83

#3
Vahid Ghafarpour Profile Picture

Vahid Ghafarpour 78 Super User 2025 Season 1

Overall leaderboard

Product updates

Dynamics 365 release plans