cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
FredericForest
Kudo Kingpin
Kudo Kingpin

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 ! )

PaulD1
Community Champion
Community Champion

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.

FredericForest
Kudo Kingpin
Kudo Kingpin

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?

PaulD1
Community Champion
Community Champion

>>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 Roundup: A Look Back at Our Last 10 Tuesday Tips

As we continue to grow and learn together, it's important to reflect on the valuable insights we've shared. For today's #TuesdayTip, we're excited to take a moment to look back at the last 10 tips we've shared in case you missed any or want to revisit them. Thanks for your incredible support for this series--we're so glad it was able to help so many of you navigate your community experience!   Getting Started in the Community An overview of everything you need to know about navigating the community on one page!  Community Links: ○ Power Apps ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Community Ranks and YOU Have you ever wondered how your fellow community members ascend the ranks within our community? We explain everything about ranks and how to achieve points so you can climb up in the rankings! Community Links: ○ Power Apps ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Powering Up Your Community Profile Your Community User Profile is how the Community knows you--so it's essential that it works the way you need it to! From changing your username to updating contact information, this Knowledge Base Article is your best resource for powering up your profile. Community Links: ○ Power Apps ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Community Blogs--A Great Place to Start There's so much you'll discover in the Community Blogs, and we hope you'll check them out today!  Community Links: ○ Power Apps ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Unlocking Community Achievements and Earning Badges Across the Communities, you'll see badges on users profile that recognize and reward their engagement and contributions. Check out some details on Community badges--and find out more in the detailed link at the end of the article! Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Blogging in the Community Interested in blogging? Everything you need to know on writing blogs in our four communities! Get started blogging across the Power Platform communities today! Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Subscriptions & Notifications We don't want you to miss a thing in the community! Read all about how to subscribe to sections of our forums and how to setup your notifications! Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Getting Started with Private Messages & Macros Do you want to enhance your communication in the Community and streamline your interactions? One of the best ways to do this is to ensure you are using Private Messaging--and the ever-handy macros that are available to you as a Community member! Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Community User Groups Learn everything about being part of, starting, or leading a User Group in the Power Platform Community. Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Update Your Community Profile Today! Keep your community profile up to date which is essential for staying connected and engaged with the community. Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Thank you for being an integral part of our journey.   Here's to many more Tuesday Tips as we pave the way for a brighter, more connected future! As always, watch the News & Announcements for the next set of tips, coming soon!

Calling all User Group Leaders and Super Users! Mark Your Calendars for the next Community Ambassador Call on May 9th!

This month's Community Ambassador call is on May 9th at 9a & 3p PDT. Please keep an eye out in your private messages and Teams channels for your invitation. There are lots of exciting updates coming to the Community, and we have some exclusive opportunities to share with you! As always, we'll also review regular updates for User Groups, Super Users, and share general information about what's going on in the Community.     Be sure to register & we hope to see all of you there!

April 2024 Community Newsletter

We're pleased to share the April Community Newsletter, where we highlight the latest news, product releases, upcoming events, and the amazing work of our outstanding Community members.   If you're new to the Community, please make sure to follow the latest News & Announcements and check out the Community on LinkedIn as well! It's the best way to stay up-to-date with all the news from across Microsoft Power Platform and beyond.    COMMUNITY HIGHLIGHTS   Check out the most active community members of the last month! These hardworking members are posting regularly, answering questions, kudos, and providing top solutions in their communities. We are so thankful for each of you--keep up the great work! If you hope to see your name here next month, follow these awesome community members to see what they do!   Power AppsPower AutomateCopilot StudioPower PagesWarrenBelzDeenujialexander2523ragavanrajanLaurensMManishSolankiMattJimisonLucas001AmikcapuanodanilostephenrobertOliverRodriguestimlAndrewJManikandanSFubarmmbr1606VishnuReddy1997theMacResolutionsVishalJhaveriVictorIvanidzejsrandhawahagrua33ikExpiscornovusFGuerrero1PowerAddictgulshankhuranaANBExpiscornovusprathyooSpongYeNived_Nambiardeeksha15795apangelesGochixgrantjenkinsvasu24Mfon   LATEST NEWS Business Applications Launch Event - On Demand In case you missed the Business Applications Launch Event, you can now catch up on all the announcements and watch the entire event on-demand inside Charles Lamanna's latest cloud blog.   This is your one stop shop for all the latest Copilot features across Power Platform and #Dynamics365, including first-hand looks at how companies such as Lenovo, Sonepar, Ford Motor Company, Omnicom and more are using these new capabilities in transformative ways. Click the image below to watch today!     Power Platform Community Conference 2024 is here! It's time to look forward to the next installment of the Power Platform Community Conference, which takes place this year on 18-20th September 2024 at the MGM Grand in Las Vegas!   Come and be inspired by Microsoft senior thought leaders and the engineers behind the #PowerPlatform, with Charles Lamanna, Sangya Singh, Ryan Cunningham, Kim Manis, Nirav Shah, Omar Aftab and Leon Welicki already confirmed to speak. You'll also be able to learn from industry experts and Microsoft MVPs who are dedicated to bridging the gap between humanity and technology. These include the likes of Lisa Crosbie, Victor Dantas, Kristine Kolodziejski, David Yack, Daniel Christian, Miguel Félix, and Mats Necker, with many more to be announced over the coming weeks.   Click here to watch our brand-new sizzle reel for #PPCC24 or click the image below to find out more about registration. See you in Vegas!     Power Up Program Announces New Video-Based Learning Hear from Principal Program Manager, Dimpi Gandhi, to discover the latest enhancements to the Microsoft #PowerUpProgram. These include a new accelerated video-based curriculum crafted with the expertise of Microsoft MVPs, Rory Neary and Charlie Phipps-Bennett. If you’d like to hear what’s coming next, click the image below to find out more!     UPCOMING EVENTS Microsoft Build - Seattle and Online - 21-23rd May 2024 Taking place on 21-23rd May 2024 both online and in Seattle, this is the perfect event to learn more about low code development, creating copilots, cloud platforms, and so much more to help you unleash the power of AI.   There's a serious wealth of talent speaking across the three days, including the likes of Satya Nadella, Amanda K. Silver, Scott Guthrie, Sarah Bird, Charles Lamanna, Miti J., Kevin Scott, Asha Sharma, Rajesh Jha, Arun Ulag, Clay Wesener, and many more.   And don't worry if you can't make it to Seattle, the event will be online and totally free to join. Click the image below to register for #MSBuild today!     European Collab Summit - Germany - 14-16th May 2024 The clock is counting down to the amazing European Collaboration Summit, which takes place in Germany May 14-16, 2024. #CollabSummit2024 is designed to provide cutting-edge insights and best practices into Power Platform, Microsoft 365, Teams, Viva, and so much more. There's a whole host of experts speakers across the three-day event, including the likes of Vesa Juvonen, Laurie Pottmeyer, Dan Holme, Mark Kashman, Dona Sarkar, Gavin Barron, Emily Mancini, Martina Grom, Ahmad Najjar, Liz Sundet, Nikki Chapple, Sara Fennah, Seb Matthews, Tobias Martin, Zoe Wilson, Fabian Williams, and many more.   Click the image below to find out more about #ECS2024 and register today!   Microsoft 365 & Power Platform Conference - Seattle - 3-7th June If you're looking to turbo boost your Power Platform skills this year, why not take a look at everything TechCon365 has to offer at the Seattle Convention Center on June 3-7, 2024.   This amazing 3-day conference (with 2 optional days of workshops) offers over 130 sessions across multiple tracks, alongside 25 workshops presented by Power Platform, Microsoft 365, Microsoft Teams, Viva, Azure, Copilot and AI experts. There's a great array of speakers, including the likes of Nirav Shah, Naomi Moneypenny, Jason Himmelstein, Heather Cook, Karuana Gatimu, Mark Kashman, Michelle Gilbert, Taiki Y., Kristi K., Nate Chamberlain, Julie Koesmarno, Daniel Glenn, Sarah Haase, Marc Windle, Amit Vasu, Joanne C Klein, Agnes Molnar, and many more.   Click the image below for more #Techcon365 intel and register today!   For more events, click the image below to visit the Microsoft Community Days website.    

Tuesday Tip | Update Your Community Profile Today!

It's time for another TUESDAY TIPS, your weekly connection with the most insightful tips and tricks that empower both newcomers and veterans in the Power Platform Community! Every Tuesday, we bring you a curated selection of the finest advice, distilled from the resources and tools in the Community. Whether you’re a seasoned member or just getting started, Tuesday Tips are the perfect compass guiding you across the dynamic landscape of the Power Platform Community.   We're excited to announce that updating your community profile has never been easier! Keeping your profile up to date is essential for staying connected and engaged with the community.   Check out the following Support Articles with these topics: Accessing Your Community ProfileRetrieving Your Profile URLUpdating Your Community Profile Time ZoneChanging Your Community Profile Picture (Avatar)Setting Your Date Display Preferences Click on your community link for more information: Power Apps, Power Automate, Power Pages, Copilot Studio   Thank you for being an active part of our community. Your contributions make a difference! Best Regards, The Community Management Team

Hear what's next for the Power Up Program

Hear from Principal Program Manager, Dimpi Gandhi, to discover the latest enhancements to the Microsoft #PowerUpProgram, including a new accelerated video-based curriculum crafted with the expertise of Microsoft MVPs, Rory Neary and Charlie Phipps-Bennett. If you’d like to hear what’s coming next, click the link below to sign up today! https://aka.ms/PowerUp  

Tuesday Tip: Community User Groups

It's time for another TUESDAY TIPS, your weekly connection with the most insightful tips and tricks that empower both newcomers and veterans in the Power Platform Community! Every Tuesday, we bring you a curated selection of the finest advice, distilled from the resources and tools in the Community. Whether you’re a seasoned member or just getting started, Tuesday Tips are the perfect compass guiding you across the dynamic landscape of the Power Platform Community.   As our community family expands each week, we revisit our essential tools, tips, and tricks to ensure you’re well-versed in the community’s pulse. Keep an eye on the News & Announcements for your weekly Tuesday Tips—you never know what you may learn!   Today's Tip: Community User Groups and YOU Being part of, starting, or leading a User Group can have many great benefits for our community members who want to learn, share, and connect with others who are interested in the Microsoft Power Platform and the low-code revolution.   When you are part of a User Group, you discover amazing connections, learn incredible things, and build your skills. Some User Groups work in the virtual space, but many meet in physical locations, meaning you have several options when it comes to building community with people who are learning and growing together!   Some of the benefits of our Community User Groups are: Network with like-minded peers and product experts, and get in front of potential employers and clients.Learn from industry experts and influencers and make your own solutions more successful.Access exclusive community space, resources, tools, and support from Microsoft.Collaborate on projects, share best practices, and empower each other. These are just a few of the reasons why our community members love their User Groups. Don't wait. Get involved with (or maybe even start) a User Group today--just follow the tips below to get started.For current or new User Group leaders, all the information you need is here: User Group Leader Get Started GuideOnce you've kicked off your User Group, find the resources you need:  Community User Group ExperienceHave questions about our Community User Groups? Let us know! We are here to help you!

Users online (6,579)