Useful SQL Scripts

I found this post @ GP4Arab blog, download the scripts file here, below are the covered scripts:

1. How to display the details of an order

2. How to Reset System Password

3. Find Table Size of the Database

4. List all Employee names, with department and job title and codes

5. A quick way to duplicate or copy a GP dynamics PRICELEVEL SET

6. Global find and replace command to update inventory item descriptions

7. Batch update customer shipping methods, change from DHL, to UPS, to FedEx and vice versa


9. Display quantity on hand, allocated and remaining inventory level (IV00102)

10. Determine Qty Allocated for a Item and location

11. Display latest transaction date for each inventory item

12. Receiving Trx History Details

13. Customer Profit in detail

14. Inventory Value by Site (Location)

15. Customer Balance Which matches with RM Trail Balance

16. Display chart of accounts info (originally posted by Claudia)

17. Code to Retrieve Item Sell Price

18. Get inventory items with positive quantity-on-hand with latest corresponding invoice info

19. Total invoiced quantity per item, per customer

20. Tell how many customer accounts per salesperson

21. Grant access to all users under DYNGRP group

22. Unlock a posting batch

23. Reset tax schedule id of all customer shipping addresses


Mohammad R. Daoud – CTO
+962 – 79 – 999 65 85


About Mohammad R. Daoud
Mohammad R. Daoud has been working as a Microsoft Dynamics GP consultant since 2004. His career path started with version 7.5; he studied every single tip of the application technicalities and did allot of successful implementations that includes functional consultations, analysis, and custom development projects. He holds a graduate degree in Computer Science and currently he is pursuing MBA degree in Accounting. In January 2007 he was nominated to the Microsoft Most Valuable Professional (MVP) certificate and was certified in April 2008 due to his online contributions in the Dynamics Community (Dynamics GP Newsgroups, Forums, User Groups and his blog: Worth to mention that he was also listed as one of the Microsoft Dynamics Top 100 Most Influential People in 2009 by DynamicsWorld. And more... • Demonstrated Passion for MS Products through participating in beta testing for some product versions, an effective member of Microsoft Connect. • Talented in securing strong high quality relationships with premier customers, partners and sales teams passionately and profitably. • Dedicated to meeting the expectations and requirements of internal and/or external customers • Problem Solver – Uses systematic approach to uncover true problem(s) and practical solution and can marshal resources to solve problem! • Proven record of effective account management, including Account Planning, Opportunity Management, and Business Management Excellence and working as part of a larger virtual team • Successful in delivering high quality technical engagements in the enterprise Dynamics GP implementations area according to customer requirements. • Dedicated, Committed, Self Motivated, Creative and highly focused with excellent communication, Negotiation, presentation, Active Listening and Objection Handling skills. • Experienced in Profitable researches and studies including white papers and technical presentations.

2 Responses to Useful SQL Scripts

  1. ~PakKaramu~ says:

    Happy new year to you

  2. Thanks, Same to you 🙂

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: