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:
*Do not forget the port at the end of the Server Name*
Once connected, you will be able to see the list of tables.
Select "New Query" and let's write a simple query
There is another pleasant observation. The tables allow you to see value as well as a label of a reference.
Stay tuned, more sections coming shortly.
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. ??
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....
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 :)
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