SQL Scripts for Microsoft Dynamics GP: List GL Accounts With Notes

Microsoft Dynamics GPThis script is part of the SQL Scripts for Microsoft Dynamics GP where I will be posting the scripts I wrote against Microsoft Dynamics GP over the 19 years before I stopped working with Dynamics GP.

This script returns a list of General Ledger Accounts with notes and which have been used on posted GL transactions.

/*
Created by Ian Grieve of azurecurve | Ramblings of an IT Professional (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). */
SELECT ACTNUMST AS Account_Num ,ACTDESCR AS Account_Description ,CASE WHEN ACCTTYPE = '1' THEN 'Posting Account' WHEN ACCTTYPE = '2' THEN 'Unit Account' END AS Account_Type ,CASE WHEN PSTNGTYP = '0' THEN 'Balance Sheet' WHEN PSTNGTYP = '1' THEN 'Profit and Loss' END AS Posting_Type ,ACCATDSC AS Account_Category ,CREATDDT AS Created ,MODIFDT AS Last_Modified ,TXTFIELD AS Notes ,DATE1 AS Note_Date FROM GL00100 AS ['Account Master'] --Breakdown Account Master (GL00100) INNER JOIN GL00105 AS ['Account Index Master'] --Account Index Master (GL00105) ON ['Account Index Master'].ACTINDX = ['Account Master'].ACTINDX INNER JOIN GL00102 --Account Category Master (GL00102) ON ['Account Master'].ACCATNUM = GL00102.ACCATNUM LEFT JOIN SY03900 --Record Notes Master (SY03900) ON ['Account Master'].NOTEINDX = SY03900.NOTEINDX WHERE EXISTS ( SELECT ACTINDX FROM GL20000 as ['Year-to-Date Transaction Open'] --Year-to-Date Transaction Open (GL20000) WHERE ['Year-to-Date Transaction Open']ACTINDX = ['Account Master'].ACTINDX UNION ALL SELECT ACTINDX FROM GL30000 AS ['Account Transaction History'] --Account Transaction History (GL30000) WHERE ['Account Transaction History'].ACTINDX = ['Account Master'].ACTINDX )

Click to show/hide the SQL Scripts for Microsoft Dynamics GP Series Index

How To Install Microsoft SQL Server 2022: Series Index

Microsoft SQL ServerI’ve been creating a new dev/demo/test environment recently and have already posted some articles about how I install and configure Windows on the servers; as I am also installing the latest version of SQL Server, I decided to cover this in a series as well.

I do not claim to be an expert on SQL Server and this series is installing SQL Server in a development/testing/demo environment. If you’re installing SQL into a production environment there will be additional work required to harden the SQL Server and avoid security issues.

The series index, below will automatically update as articles in the series go live, os make sure to check back regularly (there should be two posts a week).

How To Install Microsoft SQL Server 2022
Install SQL Server Integration Services
Available Editions
Server Features
Download SQL Server 2022 Installer
Install SQL Server Database Engine
Download SQL Server Management Studio
Install SQL Server Management Studio
Download SQL Server Reporting Services
Install SQL Server Reporting Services
Configure SQL Server Reporting Services
Change SQL Server Reporting Services maxRequestLength Setting
Install SQL Server Analysis Services
SSIS Configuration For Named Instances
SSIS Configuration For Named Instances
SSIS Configuration For Named Instances