![]() |
#1 |
Участник
|
Dynamics CRM Tools: Empty AsyncOperationBase table when it is too big
Источник: http://mscrmtools.blogspot.com/2010/...me-across.html
============== With one of my client, I came across a particularly disturbing issue. The symptoms were:
Passing a script on the organization database to identify the sizes of tables, I realized that two tables seem particularly large:
After passing through the Microsoft support for a procedure to purge these tables, the answer was procedures that would require whole days of SQL processing, which was clearly not an option for a production server. In agreement with my client, we decided to delete and recreate these tables instead of trying to empty them. WARNING! The following procedure is of course unsupported and provided as is without any warranty. It has the following constraints:
The table that we want to delete the table is AsyncOperationBase. First thing to do, identify all the dependencies for that table. To do this, start deleing the table. The following screen appears: ![]() IDENTIFYING THE DEPENDENCY OF THE TABLE ASYNCOPERATIONBASE Click the dependencies in the bottom right. Here is the list of dependent components: ![]() Before deleting the table AsyncOperationBase, so we'll have to delete all dependent items. SCRIPT GENERATION TO RECREATE DEPENDANT ELEMENTS Before that, he'll have to create the SQL scripts that will allow us to recreate the elements that will be deleted. Right click on the database of the CRM organization, Tasks, Generate Scripts. ![]() In the options for generating scripts, make sure you turn on all options for tables and views as to the screenshot below. ![]() Then select the items that will recreate. We need tables, views and user defined functions. ![]() Follow the wizard to generate scripts for the complete script to recreate the elements that we remove. When selecting items, you have therefore chosen only those items that were listed in the dependencies of AsyncOperationBase table. DELETION OF DEPENDENT ELEMENTS You can now delete items that were listed in the dependencies table AsyncOperationBase. Delete the elements with no dependencies first to go back to the table AsyncOperationBase. RECREATE DELETED ELEMENTS Once all the deleted items, use the script generated previously to recreate the elements that have been deleted. CONCLUSION Normally, you should have a "brand new CRM" (at least for system tasks, workflow logs, bulk deletion jobs, etc..). For information after this procedure:
Some tips to avoid swell these tables:
Источник: http://mscrmtools.blogspot.com/2010/...me-across.html
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору. |
|
|
|