Came across a recommended practice for optimized performance of Dynamics GP . Hope it helps all the DBAs. Cheers. <----------------------------------> Database maintenance helps keep the inner workings of Microsoft SQL Server and the Microsoft Dynamics GP databases running at their peak level. We recommend that you use the following SQL Server maintenance procedures:
We recommend that you perform these maintenance procedures weekly for the DYNAMICS database and all company databases. However, you can vary this frequency based on your environment and the activity each database receives. We also recommend that you stagger these maintenance procedures throughout the week to handle lots of data. Note Before you follow the instructions in this article, make sure that you have a complete backup copy of the database that you can restore if a problem occurs. Database consistency check commands You can run database consistency check (DBCC) commands manually with SQL Server through SQL Query Analyzer or SQL Server Management Studio. To do this, follow these steps:
If you use Microsoft SQL Server 2005 or 2008, click Start, point to Programs, point to Microsoft SQL Server 2005 or Microsoft SQL Server 2008, and then click SQL Server Management Studio.
Note DBCC CHECKCATALOG is included in DBCC CHECKDB for Microsoft SQL Server 2005 or later.
You can schedule this command within SQL Server Enterprise Manager or SQL Server Management Studio so that the maintenance process runs automatically.
The DBCC DBREINDEX command can also be executed manually against all tables at the same time by using the Reindex.sql script. You can find the Reindex.sql script in the default path for Microsoft Dynamics GP as C:Program FilesMicrosoft DynamicsGPSQLUtility folder.
You can also schedule this command within SQL Server Enterprise Manager or SQL Server Management Studio so that the maintenance process runs automatically.
Update Statistics
There are several ways for you to run the update statistics procedure.
Recompile Stored Procedures
There are several ways for you to recompile stored procedures.
Note If you receive any consistency or allocation errors when you are running these SQL maintenance procedures, you must contact Microsoft SQL Server support. This is not included in the support plan for Microsoft Dynamics GP and it would be an additional cost. Microsoft SQL Server support can be contacted at 1-800-936-5800.
Database Maintenance Procedure Definitions
The following is a list of definitions of database maintenance procedures. For more information, see SQL Server Books Online. To download SQL Server Books Online, visit the following Microsoft Web site:
Note DBCC CHECKCATALOG is included in DBCC CHECKDB for Microsoft SQL Server 2005 or later.
REFERENCES
For more information about how to create a database maintenance plan within SQL Server Management Studio, click the following article number to view the article in the Microsoft Knowledge Base:
875193 Information about database maintenance plans for Microsoft Dynamics GP or Microsoft Dynamics SL on Microsoft SQL Server 2000 or on Microsoft SQL Server 2005
For more information about how to use SQL Server Desktop Engine, click the following article number to view the article in the Microsoft Knowledge Base:
862589 Recommended maintenance for Microsoft SQL Server Desktop Engine (MSDE 2000) or for Microsoft SQL Server 2005 Express for Microsoft Great Plains databases
APPLIES TO
View original post here:
Recommended Maintenance with Microsoft SQL Server for Microsoft Dynamics GP Databases