Custom Programming
Dynamics TechBrief
MSSQL Deepsearch

How these can help you

How to purchase

Free Dynamics GP Sql Scripts


Collection of Useful Microsoft Dynamics GP Sql Scripts, Tips and Tricks

Cleaning up SALES TRANSACTION tables will result in faster Dynamics performance

Long Description:
SALES TRANSACTION tables Housekeeping by deleting orphaned rows.

Sales history table is one of the biggest tables in Dynamics. It is also one of the most accessed or used tables. We should make sure it is in its top form at all times.

In the course of our daily DYNAMICS GP use, it is common to experience some interruptions that can cause unavoidable database disparities and inconsistencies. These are caused by hidden bugs within Dynamics program or a result of a power outage. These leave Dynamics database with small amounts of invalid or abandoned bits of information that can eventually add up to become a bigger problem.

If you notice occasional slow downs, then there are probably enough bad data accumulated in your Dynamics database.

Below are some useful script for Dynamics database housekeeping.

Commands with UPDATE, DELETE or DROP can ruin your data! Please use these queries with caution. We highly recommend that you backup your database before trying out these commands and to load them up first on a test server. Use at your own risk.

Associated SQL Command:

Viewed: 15096 times

Submitted by: L. Gates

About L. Gates

View complete list previous script
next script

Did you find this script useful?
Please reciprocate by submitting your own script
or any proven advice regarding Dynamics GP use. Click here.


Send the script above to a friend

Send to EMAIL: *

Short MESSAGE: *

Sender NAME: *

Sender EMAIL:

Validation code: *  Enter 220

Trademarks: Microsoft™, Microsoft Dynamics™ and/or Microsoft logos, products, and services referenced in this site are either trademarks or registered trademarks of Microsoft Corporation.

Disclaimer: This product is not officially endorsed by Microsoft. Furthermore, this website does not imply representation of Dynamics™ or relationship with Microsoft in any form.