web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
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

I have the same question (0)
  • Ken Hubbard Profile Picture
    Microsoft Employee on at

    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

  • Suggested answer
    Community Member Profile Picture
    on at

    Thanks Ken, it was very helpful.

    Kader

  • Ken Hubbard Profile Picture
    Microsoft Employee on at

    Hello Kader,

    Glad I could help.

    Cheers,

    Ken

  • Dallie Profile Picture
    10 on at

    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

  • CU16040426-0 Profile Picture
    2 on at
    @ken hubbard, does this work with Service principal and client credentials like secret or certs? 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 182 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 123

#3
CU11031447-0 Profile Picture

CU11031447-0 100

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans