Is there a query that I can run on a Microsoft Dynamics CRM database (SQL Server) that will show me all the cases where a particular field was modified in all records of a particular entity in the CRM instance? I would like to see the "Old Value" and "New Values" values of the modified field. I have seen this done through the CRM Audit Log Summary page (i.e. https://social.microsoft.com/Forums/en-US/01b4318b-ec73-4eb2-9245-479f643cc58a/ms-dynamics-crm-audit-history-shows-icons-instead-of-values), but want to run a SQL query instead of go through the CRM UI to capture more info.
For example, I have an custom entity type called the "Car" entity type. There is a field in the Car entity called "Driver". How can I query the audits (auditing is enabled on the Car entity type in Dynamics CRM, btw) for all Car records so that I can display all Cars whose Driver has changed in a format with "Old Value" and "New Value" in the results?
I have queries the default CRM table 'AuditBase', but the only remotely relevant column in that table is 'ChangeData', which I cannot find any useful info in.
Can anyone help?
Thanks in advance.