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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

SQL query to Common Data Service

(0) ShareShare
ReportReport
Posted on by 108

Hello Everybody,

I have a c# console application that connects to the SQL Server database of our on-premise Dynamics CRM 2016.

Now that we shall move on-premise Dynamics CRM 2016 to cloud Dynamics 365. I am not sure how shall we query CRM database/Common Data Service?

It is for example an SQL Query with multiple joins. I tried using FetchXML, due to FetchXML limitation could not be converted.

Any inputs shall be appreciated.

Regards,

Madhu

I have the same question (0)
  • Verified answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello Madhu,

    TDS endpoint was released few months ago. Take a look on it - it looks like that it's what you need. Check following posts:

    markcarrington.dev/.../

    markcarrington.dev/.../

    markcarrington.dev/.../

    markcarrington.dev/.../

    markcarrington.dev/.../

    markcarrington.dev/.../

    markcarrington.dev/.../

    markcarrington.dev/.../

  • Madhu Menon Profile Picture
    108 on at

    Hello Andrew,

    Thank you very much for you links. Indeed markcarrington.dev/.../ one worked for me. Though enabling Tabular Data Stream (TDS) is not recommended by Microsoft.

    Well, i shall use this unless Microsoft comes up with better solution. Thanks alot for your references. I highly appreciate it.

    Kind Regards,

    Madhu

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 74 Super User 2025 Season 2

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 31 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans