Requesting the backup of Microsoft Dynamics 365 Online Database


In theory, requesting the backup of the online database seems very easy and straightforward. We basically need to raise a support ticket with Microsoft and provide the following details.

  • SQL Version – Standard or Enterprise
  • SQL Year of the version. In our case it was (Microsoft SQL Server 2016 (SP1) (KB3182545) – 13.0.4001.0 (X64) Oct 28 2016 18:17:30 Copyright (c) Microsoft Corporation Standard Edition (64-bit) on Windows Server 2016 Datacenter 6.3 <X64> (Build 14393)
  • Global Admin E-mail Address – to who the backup will be shared.

We had requested the same, some 3 weeks back. In our case, the Database size of our production was around 600 GB out of which 200 GB were occupied by Audit Data. For some business-specific reason, we wanted to have the backup of Audit Data with us before we delete it. Now, this Audit has a separate story with it, when we tried deleting it from UI we got the SQL Time Out issue and on raising the support ticket when Support Team tried the same through back end it, resulted in our Production Server being down briefly for few minutes. We also tried to take the back up through 3rd party tools using SSIS, however again we ran into some issue where the tool was not able to pull the Audit Data for few of the entities.

Well to cut the story short, it is around 21 days after we raised the request, and we are yet to receive the backup of our production database, we have been told that support team is actively working on it and it is because of the large size of the organization.

Will keep posting the update on the backup and the Audit deletion.

The purpose of this blog post was to share that certain things might seem straightforward and would have taken maximum few hours, could still run into issues and challenges causing delays. So, when we plan for it we need to aware of these factors as well.

Hope it helps..

Azure: Execute Stored Procedure using Azure Data Factory


Ajit Patra's avatarAjit Patra

In this blog post, we’ll see how to execute Stored Procedure in Azure SQL Database inside Azure SQL Server. Let’s go through the steps to see it in action.

  • Login to Azure Portal.
  • Click Create a resource –> Databases –> SQL Database.

  • Give a unique name to the Azure SQL Database. Click on Server field to create Azure SQL Server on the fly. 
  • Give a unique name to the Azure SQL Server, provide credential for login and click Select.

  • Make sure the Azure SQL Server that we just created is selected as Server while creating Azure SQL Database. Fill the mandatory fields and click Create.

  • Let’s connect to the Azure SQL Server using SSMS. On clicking Connect a new pop up will open where we need to put Azure subscription credential to login.

  • Using Azure subscription credential we need to create a firewall rule so that…

View original post 272 more words

SSIS and Microsoft Dynamics 365


Listing down the posts on SSIS and Microsoft Dynamics 365 for quick reference

Advertisements

Power BI and Microsoft Dynamics 365


Listing down the posts on Power BI and Microsoft Dynamics 365 for quick reference


Azure: Copy Data from D365 CE to Azure SQL Database using Azure Data Factory


Ajit Patra's avatarAjit Patra

In this blog post, we’ll see how to copy data of an entity “Contact” in D365 CE to Azure SQL Database. Let’s follow the below steps to see it in action.

  • Login to Azure portal.
  • Create Azure SQL Database where we need to copy the data. Click Create a resource –> Databases –>  SQL Database

  • Give a unique name to the database. Click on server field to create a Azure SQL Server. Give a unique name to the Azure SQL server, username and password for logging in. Click Select.

  • Make sure the Azure SQL Server just created is selected as Server while creating the Azure SQL Database –> Click on Create.

  • Connect to the Azure SQL Server just created using SSMS. Here, we’ll have to add machine IP or range of IP address after clicking Connect.

  • After signing in using Azure credential, select range…

View original post 366 more words

Above and Under operator to query hierarchical data in Dynamics 365


above and under were the 2 new operators introduced with Dynamic CRM 2015.

Let us see some of the examples.

Suppose I have the following hierarchy defined, wherein User 2 is manager of user Nishant Rana who in turn is manager of User 1.

And following are the contacts record owned by them.

In context of user Nishant Rana, if I apply Under operator, we’d get the following result

Only the records owned by child

And for Not Under

All the records owned by the user and its manager(s) or parent.

Now we do not have the Above operator in Advanced Find

So, using our favorite tool Fetch XML Builder, the above operator shows only the records owned by the parent(s) of current user.

We also have Above or equal, Under or equal operator which aren’t there in Advanced Find.

Hope it helps..