cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

SQL guys : why don't we use CDS ?

Hey folks,

Having been more involved on these forums for the past few weeks, I realized there are quite a few SQL Guys like me around. (I thought I was an oddity)

Until recently, there was a gentle "live and let live" attitude between SQL and CDS. We didn't get much love (see the ideas on triggers or procs) but we were more or less free to do our own things in a nice cost-efficient manner. Now, with the new licensing, the attitude has switched to a much less subtle "convert or die" message... with the expected pushback from the community as a result.

Yet some folks at MS are curious about why we won't use CDS as our go-to data storage. I have my own reasons, which I'll share in the next post, but I'm curious about yours. Are you able to explain why you simply won't switch to CDS overnight? Obviously, I don't believe the "all-in on CDS" strategy is going to change anytime soon. The goal here is to provide insights and understanding to MS as to why we "resist" CDS (a genuine question I've been asked by different MS employees already).

To temper my comments, let me start by saying that I DO believe that CDS has a part to play in the Power Platform. It's a great low-code DBMS sitting somewhere between Sharepoint lists and full Az SQL DB as a backend option, not unlike front-end sophistication can vary between highly managed model-driven screens all the way to PCF components. As far as I can tell, CDS' main value proposition is : 

  • No need to learn SQL (not an advantage to us, but will be for some)
  • Common model with Dynamics (if your client uses that)
  • Native REST API querying, something vanilla Azure SQL DB doesn't offer

@PaulD1 @MrMarshall  @MagnusGöransson @WillPage @OneThing @NEPatton @Rick72 @AngryBatVoice @sscarcella @digiservice @opit @JohnP @inverse70 @wjhepworth 

21 REPLIES 21
Anonymous
Not applicable

The CDM (Common Data Model) is a configured Microsoft SQL Server database so I am confused by some of the comments. The benefit to CDS(Common Data Service and CDM) over green field Microsoft SQL Server databases or Azure SQL Server DBs really revolves around Role Based Entitlement and Localization features to name two key deliverables. The database model definitely has fits and gaps, but there are many deeper features that deserve respect for the many years that they have withstood the use and abuse by millions of users and users who are currently using the structure.  

 

In general I think we all need to continue to educate each other so that the best of the best gets absorbed into the platform.

 

Cheers 

Hey @Anonymous ,

Interesting point on how CDM sits on top of SQL Server. I suspected as much, somewhat similarly to how SharePoint sits on top of SQL as well. That being said, if we can't adress the underlying SQL layer, all the pain points discussed above remain intact no matter the underlying technology... 😕

I like (and hoped for) the fact that you discuss the "benefits" side of the equation. I didn't know much about role-based entitlement. I read up a bit on it. In general, I find it similar to SQL roles (with a nicer GUI) but the addition of column-level security and OOB views limiting rows per users are good perks! The localisation is also interesting, although I haven't used it very often in other platform where something similar is available (say, SSAS cubes).

These two points are certainly interesting, and I'm definetly all hears for more great stuff about CDS. But I can't shake the feeling they are mostly "nice-to-have" features on a platform that is missing it's "must-have" (in our context, that is). Having low-code options to develop and deploy a back-end solution makes great sense in some situation (espescially for a developper who doesn't know any other way), but the cost/benefit expressed above still remains overwhelingly negative in most of my uses-cases.

Case in point : I'm currently building a trainning app where users can search for different types of material (videos, webpages, notebooks, etc) which can be organised into "playlists" and where users tag/rate/comment them for others. Here, 98% of the CDM is unrellavant to my problem (and thus is noise to me), indexing, upserting and search procedures are less than trivial (if you want good performance) and I've got no need for complex security beyond what SQL offers or for localisation. So my reflex is to stick to SQL, which I already know well and can pop up quickly...

(ps : now I'm dreading migrating this solution to a SPO-based one since there's no way we'll pay 10$/month/user for it... Aaah, the joys of licensing ! )

Thanks @Anonymous 

>>In general I think we all need to continue to educate each other so that the best of the best gets absorbed into the platform.

Very much agree.

As mentioned, I'm a noob on CDS, and interested to hear about benefits / use-cases (if you can point to any good resources comparing CDS to SQL and showing the pros/cons of each that would be interesting to see).

I do have to support @FredericForest's point that even though CDS may sit atop SQL, that isn't any help if we can't use our SQL knowledge and skills to get the most out of the platform (views, indexes, stored procs).

Anonymous
Not applicable

@PaulD1  I would start with switching hats and looking at the Enterprise Accounts using Dynamics 365 CE/CRM, because these clients have been maturing with the platform anywhere from 2004 through to new users today. Many projects in Enterprise are xRM or (Any Relationship Management) what has happened is that the power of that platform has now exploded even more outside the standard integrations originally shipped and matured. 

 

https://dynamics.microsoft.com/en-us/customer-stories/

 

As an original design and long term SDK offering Dynamics 365 CE was always about open integrations and ships with integrations to Active Directory, Outlook, Excel, Word, OneNote, SharePoint and more. 

 

It was also built (starting in 2004) to be highly configurable AND Extendable and can now be extended with over 100 different development languages (don't ask me to list them).

 

So now we shift from the "Dynamics World" into a full platform offering on the same platform. So you take this great "HEART"  from the product and offer it to the world of people who have not put the "Dynamics" hat on. 

 

I think there is a part of me that considers it similar to the 6th or 7th or 8th ... I lost count some time ago level of a development language world.

 

What is even more interesting is that given the product is now on AZURE and SaaS, the product teams are now incorporating and adopting tons of AZURE functionality into the platform. So instead of being restricted by Microsoft SQL Server, they can now use Microsoft SQL Server AND Azure Functions (logic apps, search, etc. etc. ) and offer OOB platform that pulls the entire Microsoft Stack together. 

 

It is important to be a guru on a technology like Microsoft SQL Server, but we all have to understand the choices and architecture of other technologies so that we can recommend or recruit the right experts for the problem of the day. 

 

Is technology going the way of medicine? Where you have a general practioner and referrals to experts? 

 

Cheers 


@Anonymous wrote:

@PaulD1  I would start with switching hats and looking at the Enterprise Accounts using Dynamics 365 CE/CRM, because these clients have been maturing with the platform anywhere from 2004 through to new users today.


While its de facto what we HAVE to do, that's a bit sad to me. It more or less comes down to saying "PowerApps will now be positionned mainly as an extension of Dynamics" and therefore drastically limits the outreach of the platform. Dynamics is a great product, but it covers a fraction of the potential market.

FYI : I'm currently building a 3-day Power Apps training course which will force me to have long and deep look into CDS (rather than reading docs and checking videos). If you're interested, I'll let you know if my opinion on CDS changes after I've had some real up-close-and-personal time with it.

Cheers !

Thanks @FredericForest  - interested to hear your war stories!

I'm in the midst of building a canvas app for mobile on Dynamics / CDS and my opinion has not improved. Main sticking points for me:

* Although data is stored in a relational structure, you cannot do relational queries, for example, I'm working heavily with Appointments which are for Jobs (a job will have one or more appointments), I want to filter on a combination of Appointment and Job fields (appointments of a certain status on a certain day for a particular sort of job) but cannot. I have to ask the Dynamics guys to replicate data from Jobs up to Appointments via work flows as CDS can't do relational/set based querying (e.g. JOINS). This is tedious and duplicates data, bloating (further) the data model and running the risk of data getting 'out of sync'.

Edit: I believe first level joins can be made in some circumstances - in this case, because the link between Job and Appointment is 'polymorphic' (an appointment might be for a job, it might be for something else) then the 'filter by a first level join' functionality does not work... Don't get me started on the use of polymorphic relationships from a data modelling perspective!

* The data model is horrendous. I need to show a balance on screen - there are at least 6 to choose from (I believe these are OOTB), updated by different work flows and not always agreeing with one another. The Accounts entity has two sets of address fields, but then there is an Address entity as well with a key to Accounts in case there are more, so you need to look in multiple places for the same data.

* Refreshing of data is problematic, I believe because you have to rely on workflows to copy data between entities (to make up for the absence of join queries) - so you write data, but there is a delay before the record is available/complete as the workflow may be asynchronous and take a while.

* You can have multiple fields with exactly the same display name in an entity and which field PowerApps gets appears to be random, changing each time I start the App (have to use the internal field name to get around this).

* There are some entities that I just don't seem to be able to write to with a Patch statement but can write to via a Form, so I need to use a hidden form, set the values as needed and then submit.

* If I want a simple thing like a count, I can't do it in a delegable fashion because I can't write my own server side queries - I have to filter to get several hundred records, then count how many I got back.

* Because the built-in entities are so bloated and Explicit Column Selection cannot be relied upon to actually return the fields you need, it is advisable to put a ShowColumns on every data call so you only pull down the 6 or so columns you need rather than 100+ fields of guff (with many of these columns being 'wide' because they link to other entities and all IDs in CDS appear to be GUIDS).

 

I get that Dynamics has been so horrible to work with for so long, that to Dynamics folks, CDS must seem like paradise. But coming from SQL, CDS feels like the pits of doom.

 

Just as a follow up to the original trigger for this thread. Since SQL Connectors were reclassed as premium we have had zero new projects green-lit using SQL. We do have some maintenance and enhancement work for existing systems benefiting from the 'grandfather' clause/exemption but all this systems are planned to be replaced before they are hit by the new license model.

@PaulD1 ouch...

I'll wait to make my own opinion, but I saw an Ignite 2019 video on how to model on CDS and the guy explained how he put keys everywhere between different tables because a query couldn't a second-level join (you can only join with tables have direct links with your current table). If that's truly the case, it does illustrate quite well why most of use won't move over anytime soon ! 😅

Before starting this little journey on CDS, my current view is something like this :

CDS is a low-code RDBMS somewhat akin to a modern, cloud-based version of MS Access tables. It is well-equiped to serve power-users on self-service projects. As a storage option, it fits in a feature/fonctionality continuum like this : 

 

 

Excel tables < SPO Lists < CDS < SQL

 

 

If this view is confirmed through tests and usage, I'll do a little decision tree on when to use what between SPO Lists, CDS and SQL, with licensing costs and technical expertise being the 2 main factors.

Correct me if I'm wrong, but CDS is still a premium connector, right?  So - there's no difference in the cost of PowerApps when using CDS or SQL?

>>Correct me if I'm wrong, but CDS is still a premium connector, right?  So - there's no difference in the cost of PowerApps when using CDS or SQL?

 

I believe CDS licensing comes with some Dynamics plans, so if you are using Dynamics you likely have CDS.

All my (limited) experience with CDS is in organisations who have Dynamics licenses - I don't think they are paying again for CDS.

Helpful resources

Announcements

Community will be READ ONLY July 16th, 5p PDT -July 22nd

Dear Community Members,   We'd like to let you know of an upcoming change to the community platform: starting July 16th, the platform will transition to a READ ONLY mode until July 22nd.   During this period, members will not be able to Kudo, Comment, or Reply to any posts.   On July 22nd, please be on the lookout for a message sent to the email address registered on your community profile. This email is crucial as it will contain your unique code and link to register for the new platform encompassing all of the communities.   What to Expect in the New Community: A more unified experience where all products, including Power Apps, Power Automate, Copilot Studio, and Power Pages, will be accessible from one community.Community Blogs that you can syndicate and link to for automatic updates. We appreciate your understanding and cooperation during this transition. Stay tuned for the exciting new features and a seamless community experience ahead!

Summer of Solutions | Week 4 Results | Winners will be posted on July 24th

We are excited to announce the Summer of Solutions Challenge!   This challenge is kicking off on Monday, June 17th and will run for (4) weeks.  The challenge is open to all Power Platform (Power Apps, Power Automate, Copilot Studio & Power Pages) community members. We invite you to participate in a quest to provide solutions in the Forums to as many questions as you can. Answers can be provided in all the communities.    Entry Period: This Challenge will consist of four weekly Entry Periods as follows (each an “Entry Period”)   - 12:00 a.m. PT on June 17, 2024 – 11:59 p.m. PT on June 23, 2024 - 12:00 a.m. PT on June 24, 2024 – 11:59 p.m. PT on June 30, 2024 - 12:00 a.m. PT on July 1, 2024 – 11:59 p.m. PT on July 7, 2024 - 12:00 a.m. PT on July 8, 2024 – 11:59 p.m. PT on July 14, 2024   Entries will be eligible for the Entry Period in which they are received and will not carryover to subsequent weekly entry periods.  You must enter into each weekly Entry Period separately.   How to Enter: We invite you to participate in a quest to provide "Accepted Solutions" to as many questions as you can. Answers can be provided in all the communities. Users must provide a solution which can be an “Accepted Solution” in the Forums in all of the communities and there are no limits to the number of “Accepted Solutions” that a member can provide for entries in this challenge, but each entry must be substantially unique and different.    Winner Selection and Prizes: At the end of each week, we will list the top ten (10) Community users which will consist of: 5 Community Members & 5 Super Users and they will advance to the final drawing. We will post each week in the News & Announcements the top 10 Solution providers.  At the end of the challenge, we will add all of the top 10 weekly names and enter them into a random drawing.  Then we will randomly select ten (10) winners (5 Community Members & 5 Super Users) from among all eligible entrants received across all weekly Entry Periods to receive the prize listed below. If a winner declines, we will draw again at random for the next winner.  A user will only be able to win once overall. If they are drawn multiple times, another user will be drawn at random.  Individuals will be contacted before the announcement with the opportunity to claim or deny the prize.  Once all of the winners have been notified, we will post in the News & Announcements of each community with the list of winners.   Each winner will receive one (1) Pass to the Power Platform Conference in Las Vegas, Sep. 18-20, 2024 ($1800 value). NOTE: Prize is for conference attendance only and any other costs such as airfare, lodging, transportation, and food are the sole responsibility of the winner. Tickets are not transferable to any other party or to next year’s event.   ** PLEASE SEE THE ATTACHED RULES for this CHALLENGE**   Week 1 Results: Congratulations to the Week 1 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Community MembersNumber of SolutionsSuper UsersNumber of Solutions @anandm08  23 @WarrenBelz  31 @DBO_DV  10 @Amik  19 AmínAA 6 @mmbr1606  12 @rzuber  4 @happyume  7 @Giraldoj  3@ANB 6 (tie)   @SpongYe  6 (tie)     Week 2 Results: Congratulations to the Week 2 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Community MembersSolutionsSuper UsersSolutions @anandm08  10@WarrenBelz 25 @DBO_DV  6@mmbr1606 14 @AmínAA 4 @Amik  12 @royg  3 @ANB  10 @AllanDeCastro  2 @SunilPashikanti  5 @Michaelfp  2 @FLMike  5 @eduardo_izzo  2   Meekou 2   @rzuber  2   @Velegandla  2     @PowerPlatform-P  2   @Micaiah  2     Week 3 Results: Congratulations to the Week 3 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge.   Week 3:Community MembersSolutionsSuper UsersSolutionsPower Apps anandm0861WarrenBelz86DBO_DV25Amik66Michaelfp13mmbr160647Giraldoj13FLMike31AmínAA13SpongYe27     Week 4 Results: Congratulations to the Week 4 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge.   Week 4:Community MembersSolutionsSuper UsersSolutionsPower Apps DBO-DV21WarranBelz26Giraldoj7mmbr160618Muzammmil_0695067Amik14samfawzi_acml6FLMike12tzuber6ANB8   SunilPashikanti8

Check Out | 2024 Release Wave 2 Plans for Microsoft Dynamics 365 and Microsoft Power Platform

On July 16, 2024, we published the 2024 release wave 2 plans for Microsoft Dynamics 365 and Microsoft Power Platform. These plans are a compilation of the new capabilities planned to be released between October 2024 to March 2025. This release introduces a wealth of new features designed to enhance customer understanding and improve overall user experience, showcasing our dedication to driving digital transformation for our customers and partners.    The upcoming wave is centered around utilizing advanced AI and Microsoft Copilot technologies to enhance user productivity and streamline operations across diverse business applications. These enhancements include intelligent automation, AI-powered insights, and immersive user experiences that are designed to break down barriers between data, insights, and individuals. Watch a summary of the release highlights.    Discover the latest features that empower organizations to operate more efficiently and adaptively. From AI-driven sales insights and customer service enhancements to predictive analytics in supply chain management and autonomous financial processes, the new capabilities enable businesses to proactively address challenges and capitalize on opportunities.    

Updates to Transitions in the Power Platform Communities

We're embarking on a journey to enhance your experience by transitioning to a new community platform. Our team has been diligently working to create a fresh community site, leveraging the very Dynamics 365 and Power Platform tools our community advocates for.  We started this journey with transitioning Copilot Studio forums and blogs in June. The move marks the beginning of a new chapter, and we're eager for you to be a part of it. The rest of the Power Platform product sites will be moving over this summer.   Stay tuned for more updates as we get closer to the launch. We can't wait to welcome you to our new community space, designed with you in mind. Let's connect, learn, and grow together.   Here's to new beginnings and endless possibilities!   If you have any questions, observations or concerns throughout this process please go to https://aka.ms/PPCommSupport.   To stay up to date on the latest details of this migration and other important Community updates subscribe to our News and Announcements forums: Copilot Studio, Power Apps, Power Automate, Power Pages

Users online (697)