Edit: Since I made this post, Microsoft has released a new Dataset. In order to install this data, you can use the restore option. In order to do so:
- Shutdown the AOS in services
- Open SQL Management Studio
- Connect to the SQL Database
- Right Click MicrosoftDynamicsAx => Tasks => Restore => Database
- Select From Device and then find the downloaded .bak File.
- On the top left click on "Options" and check the first box:
Overwrite the existing database (With REPLACE)
- Click OK and repeat for the other DB.
For more information on the three partitions contained in the CONTOSO Dataset check the pdf available next to the CONTOSO data download link!
The folowing procedure allowed you to install the first Dataset that Microsoft removed a couple of days later from their website. This procedure can still help you restore the new .bak files if the previous one fails.
- Shudown the AOS in Services.
- Open SQL Server Management Studio.
- Connect to your Ax Database.
Note: Here, you will see there are two bases with the same name as the Contoso .bak ones. You guessed right, we are going to import them, but you can't do it by just clicking on "Restore Database" since the .bak file originated from a different database. Here is where a litle bit of coding is required.
- Backup the two bases.
Click on "New Query" and input/Execute the following code:
Alter Database MicrosoftDynamicsAX_model
SET SINGLE_USER With ROLLBACK IMMEDIATE
RESTORE DATABASE MicrosoftDynamicsAX_model
FROM DISK = '%Path to .Bak File%\MicrosoftDynamicsAX_model.bak'
WITH REPLACE
If this doesn't work because the Database is in use, add the following lane at the top of the query:
Use Master
Repeat the same query for the MicrosoftDynamicsAX.bak file
Once all this is done, your Database should be up to date and the Contoso Data should be imported.
You can now restart your AOS. This might take a long time and you might even consider rebooting the server. Once the server finally starts, open the Ax Client. It should be extremely slow. This is due to the 26 000 Alerts that you should see on the bottom right part of the client. Mark them all as read (again this will take some time) and now the client should run much faster!
You should now have Contoso Data in your Dynamics AX 2012 R2 Installation!