Collection of useful Microsoft Great Plains Dynamics Sql Scripts, Tips and Tricks
|
|
1.
Customer Addresses
Display all address entries of a certain customer.
The example below shows all address entries of..
(viewed 1113 times) |
2.
Details of an inventory item
This sql displays the details of an inventory item.
Example below shows the details of Item numbe..
(viewed 1058 times) |
3.
List all inventories
SqL query to list all inventory items..
(viewed 1004 times) |
4.
How to display the internet address of a customer
This command will query the table of internet addresses..
(viewed 1327 times) |
5.
Display all customer records
This command will display all customer records sorted by Customer name..
(viewed 2755 times) |
6.
Current Dynamics GP activities
Display all activities by users in Dynamics..
(viewed 1329 times) |
7.
Display all ORDERS that are on-hold in Dynamics GP
Command to pull all current orders that are on hold and not void in Dynamics GP database...
(viewed 1684 times) |
8.
Voided current orders in Dynamics GP
Display all voided current orders in Dynamics GP..
(viewed 1311 times) |
9.
Order Comments
Display all comments for a particular order..
(viewed 1409 times) |
10.
How to unlock a Dynamics user
This is useful in solving Dynamics GP error: "User is already logged-in" when you are trying to log ..
(viewed 3224 times) |
11.
How to display the details of an order
This command displays the details of a Dynamics GP order that is current or has not yet been posted...
(viewed 1577 times) |
12.
The invoice is being edited by another user
Solution to error: "The invoice is being edited by another user"
1. Have all your users logout
2..
(viewed 1347 times) |
13.
Remove a database from Dynamics Great Plains
How to remove a database from Dynamics Great Plains. Make sure to back up your database first before..
(viewed 1634 times) |
14.
Reset tax schedule id of all customer shipping addresses
this is a script we used on our dynamics gp to initialize all customer delivery addresses' tax flags..
(viewed 793 times) |
15.
reset all pricelists for a particular currency
our company ran into a couple of problems during our first time implementing multi currency support ..
(viewed 1247 times) |
16.
Batch update standard cost of all inventory items
A script to update the standard cost of your inventories...
(viewed 731 times) |
17.
Mapping list of all manufacturer Item No. and dealer's Item No.
Dynamics script to query all dealers' item numbers, side by side with your own company's item number..
(viewed 621 times) |
18.
Unlock a posting batch
Dynamics gp sql script to unlock a batch number causing system error message...
(viewed 1090 times) |
19.
Migrating a Dynamics GP database from one server to another - Script 1 of 6
This is a series of SQL scripts to be used when migrating a Dynamics GP database from one server to ..
(viewed 1288 times) |
20.
Migrating a Dynamics GP database from one server to another - Script 2 of 6
This is a series of SQL scripts to be used when migrating a Dynamics GP database from one server to ..
(viewed 1009 times) |
21.
Migrating a Dynamics GP database from one server to another - Script 3 of 6
This is a series of SQL scripts to be used when migrating a Dynamics GP database from one server to ..
(viewed 539 times) |
22.
Migrating a Dynamics GP database from one server to another - Script 4 of 6
This is a series of SQL scripts to be used when migrating a Dynamics GP database from one server to ..
(viewed 772 times) |
23.
Migrating a Dynamics GP database from one server to another - Script 5 of 6
This is a series of SQL scripts to be used when migrating a Dynamics GP database from one server to ..
(viewed 522 times) |
24.
Migrating a Dynamics GP database from one server to another - Script 6 of 6
This is a series of SQL scripts to be used when migrating a Dynamics GP database from one server to ..
(viewed 1475 times) |
25.
Grant access to all users under DYNGRP group
This is another sleek script for granting all your users access to all tables and stored procedures...
(viewed 2425 times) |
26.
Count of customers per classification
A useful Dynamics GP script when finding the number of your records on each customer class...
(viewed 1253 times) |
27.
Tell how many customer accounts per salesperson
This Dynamics GP script will show how many customers are under each salesperson. A great tool to tel..
(viewed 1318 times) |
28.
Which customer owes your company the most money?
This Dynamics GP script shows all customers that have a balance due. The output is sorted by descend..
(viewed 746 times) |
29.
Display "ShipComplete" Orders
A query to list orders where customer is unwilling to accept multiple shipments.
..
(viewed 569 times) |
30.
Generate a quick 'Orders Urgent list'
This Dynamics gp sql will list orders not yet fulfilled and is either 5 days overdue or 5 days befor..
(viewed 439 times) |
31.
Inventory count per item class
A query to display the number of invetories or stocks per 'Item Class'.
Displays all Item Classes..
(viewed 519 times) |
32.
All Currency IDs from the current database
Display list of distinct or unique Currency IDs from the current database.
MC60100: Multicurrency ..
(viewed 1464 times) |
33.
Update quantity decimals of selected items
Set the 'Decimal Places QTYS' of some items. This can be done by updating the value of column DECPLQ..
(viewed 530 times) |
34.
Get the table schema of RM00101, SOP10100, SOP30200 - heck any table, any database!
This is great script for quickly generating the table schema of any table you pick from any Dynamics..
(viewed 2882 times) |
35.
Employee Net Paid
Display list of Employees Net paied After sum the salary and Pay codes subtraction the Deductions..
(viewed 597 times) |
36.
previous amount for customer in
Hello
The code below to display the previous amount for customer in
specific date
Mybe useful..
(viewed 573 times) |
37.
Quick list of each customer's currency settings.
Useful for those whose companies whose that have support for multi-currency setup. The list displays..
(viewed 2100 times) |
38.
All other documents related to a particular Order Number.
This query is useful when you want to list all inter-related documents that have the same MASTER NUM..
(viewed 628 times) |
39.
Historical transaction records of a customer
Hello, it's me again.. I have been inspired to write a lot of scripts since purchasing your GP-DYNAM..
(viewed 838 times) |
40.
Summary of earnings per country
Query to display the summary of earnings for each country within a particular sales period. This que..
(viewed 1036 times) |
41.
How to create a quick table back-up ( and avoid banging your head against the wall! )
How many times have you messed up a table and wished you could restore it exactly as it was some 5 m..
(viewed 1249 times) |
42.
The number of decimal places for a currency can't be decreased once the currency has been saved.
This site has helped me a great deal.. in return here's a script that might help other. This script ..
(viewed 1927 times) |
43.
Consolidation of datbases
We are consolidating databases for vendor transactions here is script how we achieved that..
(viewed 2097 times) |
44.
How to query ms dynamics database
To determine the tables you need to run query statements on, just go to:
1. On main menu, click Too..
(viewed 1478 times) |
45.
How to export GP Dynamics table (like USERS LIST) to MS Excel sheet
This is a procedure we use to export a table content from a Dynamics database into an Excel sheet. I..
(viewed 1574 times) |
46.
Batch update GL ACCOUNTS - Case conversion
Programmatically convert all account descriptions into uppercase
..
(viewed 1017 times) |
47.
Batch update GL ACCOUNTS - Search and replace account descriptions
This next query is useful if you want to make batch updates on your list of GL Accounts.
For ins..
(viewed 1894 times) |
48.
A nifty way to reverse engineer data manipulation in MS GREAT PLAINS applications
** This is a sponsored post from GP-DYNAMICS.COM**
Helpful Tip for MICROSOFT GREAT PLAINS develop..
(viewed 1485 times) |
49.
Duplicate SalesOrder Documents
Script to search for duplicate sales order documents. A sales order in the current work table is a d..
(viewed 761 times) |
50.
Fix Item custom categories
Background of the problem:
We imported data from various external sources into GP Dynam..
(viewed 1669 times) |
51.
Check validity of location-codes in the inventory quantities table (IV00102) against the master table of locations (IV40700)
During importing/exporting of inventory and their corresponding quantity breakdowns, sometimes the l..
(viewed 1041 times) |
52.
Create a new Salesperson entry
insert a new sales person / salesrep account record in great plains dynamics..
(viewed 236 times) |
53.
Show invoice year summary of each customer
This query will sum up all invoice totals of each customer.
We'll use the SOP30200 table. It hold..
(viewed 410 times) |
54.
Show customer's invoice total per year, with variance computation from another year
Let us take the invoice year summary query one step further. Wouldn't it be quite useful to see it c..
(viewed 290 times) |
55.
Show the top-earning (best selling) products of the year
This query shows the current year sales of each product in your inventory. The figures come from the..
(viewed 363 times) |
56.
Show the earnings of each product with comparative sales performance from previous year
What good are product sales figures if you can't tell how well it performed compared to the previous..
(viewed 283 times) |
57.
Total invoiced quantity per item, per customer
Query to show summary of invoice items per customer, grouped by item...
(viewed 383 times) |
58.
Get inventory items with positive quantity-on-hand with latest corresponding invoice info
This routine gets a list of all inventory items where quantity-on-hand is greater than zero. Also, i..
(viewed 390 times) |
59.
Code to Retrieve Item Sell Price
This code below to Retrieve Item Number, item Description , UOM ,
Current Cost , Price Lavel ,Mark..
(viewed 353 times) |
60.
Display chart of accounts info (originally posted by Claudia)
[This is an edited entry]
GL00100 - Account Master
GL00100 - Account Master Copy A
GL00100 - Dist..
(viewed 541 times) |
61.
Customer Balance Which matches with RM Trail Balance
Customer Balance Query..
(viewed 332 times) |
62.
Cleaning up SALES TRANSACTION tables will result in faster Dynamics performance
SALES TRANSACTION tables Housekeeping by deleting orphaned rows.
Sales history table is one of th..
(viewed 330 times) |
63.
How to speed up PRICELIST related routines in Dynamics
Another very slow process in Dynamics is the loading and maintaining Price Lists. This is because ea..
(viewed 241 times) |
64.
SALES Documents housekeeping routines
Here are some more housekeeping sql routines that you can use to clean up your sales document tables..
(viewed 240 times) |
65.
Inventory Value by Site (Location)
This Query results Inventory Value by Site/Location..
(viewed 275 times) |
66.
Customer Profit in detail
Query helps you to fetch the Customer Profit in Details.
A Variable is declared for the year, chang..
(viewed 200 times) |
67.
Receiving Trx History Details
A very useful SQL routine to view all the details of Receiving Trx History Details, i guess this may..
(viewed 276 times) |
68.
How to list all customers and their internet address
Since customer address information is stored per location and each location can have a contact with ..
(viewed 179 times) |
69.
running script of multiple/all companies
sometimes one needs to run same script on all companies e.g. dbcc checkdb on all great plains compan..
(viewed 231 times) |
70.
Dynamics query to display matching orders and invoices
This command will show a chronological list of order, backorder and invoice documents that are relat..
(viewed 194 times) |
71.
Display latest transaction date for each inventory item
Query to display latest transaction date for all document types of each inventory item. May be helpf..
(viewed 165 times) |
72.
Determine Qty Allocated for a Item and location
Find Qty allocated for a specified item and location, you can modify this code as per your needs, th..
(viewed 83 times) |
|
|
|