Keep Learning
A Second in an Elevator

To the SQL Guru Audience - Can I write directly to the Microsoft Dynamics CRM SQL Database?

If I had a dollar for every time the following question was asked in the field I could.. ! Well here is a much better response then a flat No and my thanks to Steven Vlaanderen Oldenzeel from Microsoft PFE for sharing!

Can I write directly to the Microsoft Dynamics CRM SQL Database? 

  1. We will support everything you would do when you are using the CRM application layer.
  2. For CRM users we do NOT allow direct SQL Server connections, except for excel touching filtered views (but the user might not even know how this technically works).
  3. For a DBA, CRM Consultants and other technicians, we will allow anything you do on the SQL Server directly (maintenance, indexes, select statements), but we cannot support it, but your SQL team can support it. This means, test it first and document it properly!
  4.  We will NOT allow direct data inserts or updates at all. Do this via the CRM application layer and do not bypass the CRM Security model. This also counts for writing SP’s, Triggers, Functions directly on SQL. Please use Workflows and Plugins.