Software Information

SQL: Querying Microsoft Great Plains - Overview for Database Administrator/Developer


Looks like Microsoft Great Plains becomes more and more popular, partly because of Microsoft muscles behind it.  Now it is targeted to the whole spectrum of horizontal and vertical market clientele.  Small companies use Small Business Manager (which is based on the same technology - Great Plains Dexterity dictionary and runtime), Great Plains Standard on MSDE is for small to midsize clients, and then Great Plains serves the rest of the market up to big corporations.  There are several reporting tools available and you definitely need to know which one to use for different types of reports.

If you are database administrator who is asked to import some data to Great Plains or repair or copy data from one company to another - read this and you will have the clues on where to look further.

 

1.  Microsoft Great Plains Tables Structure - Launch Great Plains and go to Tools->Resource Description->Tables.  Find the table in the proper series.  If you are looking for the customers - it should be RM00101 - customer master file.

2.  DEX_ROW_ID.  This is identity column and each Great Plains table has it - this is due to the Great Plains Dexterity technology.  This column is never used as a key field - so don't try to link your tables on DEX_ROW_ID.  In case if you need to transfer the table from one company to another you should use these queries:

select * into GL00100_BAK from TWO.dbo.GL00100
go
alter table GL00100_BAK drop column DEX_ROW_ID
go
insert into GL00100 select * from GL00100_BAK
go
drop table GL00100_BAK

The set of queries above will transfer GL00100 (Account Master table) from TWO company into your current company.  Then you need to run Checklinks - refer to GP Manual - in order to recreate the rest of the account master related tables.

3.  Do not modify the table - sometimes it seems to be nice if you just append couple of extra columns to the table - like in IV00101 - inventory master file why wouldn't you just add couple of additional descriptions.  If you do this - Great Plains Dexterity engine will fail reading all your items - due to the fact that DYNAMICS.DIC (main Great Plains Dictionary file) has exact description of all the tables and Dexterity uses it for reading and writing into the specific table

4.  Feel free to create SQL views or stored procs.  If you are helping your internal developers to create Crystal Reports - good SQL views are real help to them.  Let me give you example, the view below will show work and historical SOP Invoices - then Crystal can just use it

create view SOP_WORK_HIST
as
select SOPNUMBE, CUSTNMBR, CUSTNAME, DOCAMNT from SOP30200 where SOPTYPE=3 and VOIDSTTS=0
union
select SOPNUMBE, CUSTNMBR, CUSTNAME, DOCAMNT from SOP10100 where SOPTYPE=3 and VOIDSTTS=0

The above view will show all the work and historical non-voided invoices (SOP Type = 3 stays for invoice)

5.  Some repair / unlocking tips:

If you run query above against DYNAMICS database - it will unlock the user, who accidentally shut down the computer without logging off Great Plains:

delete ACTIVITY where USERID='JOHN'

Next one will unlock hanging batch:

update SY00500 set BCHSTTUS=0 where BACHNUMB = 'JULYINVOICES04' 

Happy querying!  if you want us to do the job - give us a call 1-866-528-0577! help@albaspectrum.com

Andrew Karasev is Chief Technology Officer in Alba Spectrum Technologies - USA nationwide Microsoft CRM, Microsoft Great Plains implementation and customization company, based in Chicago, Boston, New York, San Francisco, Los Angeles, San Diego, Phoenix, Houston, Dallas, Atlanta, and Miami and having locations in multiple states and internationally (www.albaspectrum.com), he is Dexterity, SQL, VB/C#.Net, Crystal Reports and Microsoft CRM SDK developer.


MORE RESOURCES:

Knoa Software Expands Executive Team with Addition of Michael Zuckerman as ...
MarketWatch (press release)
NEW YORK, Feb 07, 2012 (BUSINESS WIRE) -- Knoa(R) Software, the leading provider of end-user management software, today announced the expansion of its executive team with the addition of Michael Zuckerman as chief marketing officer and vice president.

and more »


Polarion Software Makes a Bold Move Into the Software Testing Market With ...
MarketWatch (press release)
ALAMEDA, CALIFORNIA, Feb 07, 2012 (MARKETWIRE via COMTEX) -- Polarion Software, a recognized leader in application lifecycle management, announced today it has further expanded its end-to-end support for software development teams with the launch of ...

and more »


Asure Software Announces Time Clock Subscription Program for Workplace ...
MarketWatch (press release)
AUSTIN, Texas, Feb 07, 2012 (BUSINESS WIRE) -- Asure Software, Inc. (nasdaq-cm:ASUR), a leading provider of workplace management software, today announced that it is offering a monthly time clock subscription program as part of its time and labor ...

and more »


ABB to Embed nlyte Software DCIM Suite Into Its New Decathlon Offering to ...
MarketWatch (press release)
MENLO PARK, Calif., Feb 07, 2012 (BUSINESS WIRE) -- nlyte Software, the data center infrastructure management (DCIM) solution provider founded by data center professionals for data center professionals, and ABB /quotes/zigman/280841/quotes/nls/abb ABB ...

and more »


Veeam Software Reports Record-Breaking Year in 2011
MarketWatch (press release)
COLUMBUS, Ohio, Feb 07, 2012 (BUSINESS WIRE) -- Veeam Software, innovative provider of data protection, disaster recovery and management solutions for virtual datacenter environments, today announced results for the fourth quarter and full year of 2011 ...

and more »


SCYTL and SOE Software Integrate Their Operations in the United States
MarketWatch (press release)
SCYTL, the global leader in secure electronic voting technologies, and SOE Software, the leading software provider of election management solutions, have announced today that they have completed the integration of their respective organizations in the ...

and more »


iWave Software Delivers Product Advancements, Unveils Automator Suite of Solutions
MarketWatch (press release)
FRISCO, Texas, Feb 07, 2012 (BUSINESS WIRE) -- iWave Software, a provider of storage and cloud automation solutions, today announced product advancements and a rebranded suite of products called iWave Automator. Unlike traditional IT process ...

and more »


Engineered Arresting Systems Corporation (ESCO) Selects MSC Software's Adams
MarketWatch (press release)
SANTA ANA, CA, Feb 07, 2012 (MARKETWIRE via COMTEX) -- MSC Software Corporation, the leader in multidiscipline simulation solutions that accelerate product innovation, today announced that Engineered Arresting Systems Corporation (ESCO), a division of ...

and more »


eNewsChannels

TeamF1 Announces Support for Cavium OCTEON® III Multicore MIPS64® Processor Family
Sacramento Bee
TeamF1.com), the leader in embedded networking and security software solutions for wired and wireless applications, today announced it will support the new state-of-the art OCTEON® III MIPS64® family of 1 – 48 core multicore processors from Cavium, ...
6WIND Announces Packet Processing Software Optimized for Cavium's OCTEON® III ...PR Web (press release)
6WIND Announces Packet Processing Software Optimized For Cavium's OCTEON(R ...Daily Markets (press release)
Next Generation of TeamF1 Turnkey Gateway and Storage Software Combines High ...eNewsChannels
MarketWatch (press release)
all 48 news articles »


Confio Claims 2011 Growth
techrockies.com
Privately held Confio, the Boulder-based maker of database performance management software, reports today that it has 71 percent revenue growth in 2011. The firm--which did not disclose actual revenue numbers--also said it has more than doubled the ...
Confio Software Finishes 2011 with Soaring GrowthMarketWatch (press release)

all 7 news articles »

Google News

home | site map
© 2006