When implementing Microsoft Dynamics GP for a new client, they usually have very similar setup between companies. While you can use the Professional Services Tools Library tool Company Copy, you sometimes need to replicate data which was configured after this function had been used.
Created by Ian Grieve of azurecurve|Ramblings of a Dynamics GP Consultant (http://www.azurecurve.co.uk) This code is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0 Int). */ -- update account description in Account Category Master (GL00102) where exists UPDATE #AccountCategories SET ACCATDSC = #SourceAccountCategories.ACCATDSC FROM GL00102 AS #Accountcategories INNER JOIN TEST../GL00102 AS #SourceAccountCategories ON #SourceAccountCategories.ACCATNUM = #AccountCategories.ACCATNUM GO -- insert new data into Account Category Master (GL00102) INSERT INTO GL00102 (ACCATNUM,ACCATDSC) --VALUES (SELECT ACCATNUM,ACCATDSC FROM TEST..GL00102 WHERE ACCATNUM NOT IN (SELECT ACCATNUM FROM GL00102)) GO
Ensure you have a good backup before running the script and validate the data afterwards.