Use SQL to query data in CDS (Preview) - Part 1 (Connection and the first query)

Use SQL to query data in CDS (Preview) - Part 1 (Connection and the first query)

Good evening friends,

Today I wanted to explore a significant step for Power/Dynamics professionals. As of this week, you can query CDS (Common Data Service) using SQL. So let explore all the quirks and features of this new approach.

Note, to benefit from it; one needs to be already familiar with CDS architecture and CDS. In my opinion, experience with older, on-premise systems also very beneficial.

It is important to note that the connector is read-only. It is not possible to create, update or delete records.

So, let’s see.

First, you must download SQL Server Management Studio. Note, the version must be 18.4 or higher. I have tried an older one and was not able to connect.

Second, the connection string:

No alt text provided for this image

*Do not forget the port at the end of the Server Name*

Once connected, you will be able to see the list of tables.

No alt text provided for this image

Select "New Query" and let's write a simple query

No alt text provided for this image

There is another pleasant observation. The tables allow you to see value as well as a label of a reference.

No alt text provided for this image

Stay tuned, more sections coming shortly.


Andrew Ly

Microsoft MVP | FTRSA (Power Apps) @ Nexon Asia Pacific

4 年

Love that reference name made a comeback, always been there in on-prem days and sorely missed ??

回复

Great article! ?? Have you ever tried to connect to Dynamics 365 CE Online via .NET Core from an azure function? Would be nice to see if you have also information regarding this. ??

回复
Mark Burley

Dynamics / Power Platform Developer

4 年

I have been trying to only use Azure Data Studio recently expecting it to replace SSMS but then they do this :) I cannot connect via the Data Studio ! Can you create SQL views / functions using this connection like any other data connection? My Power Bi reporting out of Dynamics relies on Views....

回复
Mark Burley

Dynamics / Power Platform Developer

4 年

What is the advantage of this over the data export service? Does it allow access to all entities. And does not need that painful setting up :)

回复
Scott McKenzie

Chief Technology Officer at Fort Vermilion School Division

4 年

I'm getting a Network Error when trying to connect. I have latest version of Management Studio

  • 该图片无替代文字
回复

要查看或添加评论,请登录

Igor Shvets的更多文章

社区洞察

其他会员也浏览了