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:

FRANCE 24

Oracle Rejects $272M SAP Award, Demands New Trial
ABC News
Business software maker Oracle Corp. has turned down $272 million in court-ordered damages from SAP AG in hopes of leaving a much bigger dent in its rival's pocketbook and reputation during a second trial over allegations of corporate theft.
Oracle wants new trial in SAP caseAFP

all 231 news articles »


Jive Software Q4 Earnings, Revenue Beat Street
Forbes
Updated: Enterprise social networking company Jive Software reported its first earnings as a public company today, beating Street earnings and revenue expectations. Jive generated $22.5 million in revenue in the fourth quarter of 2011, up 53% from the ...
Photo Release -- Jive Software Announces Fourth Quarter and Full Year 2011 ...MarketWatch (press release)
Jive Software Q4 Loss Widens - Quick FactsNASDAQ
Jive reports bigger 4Q loss, higher revenueBusinessWeek

all 49 news articles »


Advent Software Beats on EPS, but GAAP Results Lag
msnbc.com
31 (Q4), Advent Software beat expectations on revenues and beat expectations on earnings per share. Compared to the prior-year quarter, revenue expanded significantly and GAAP earnings per share contracted significantly. Advent Software notched revenue ...

and more »


Guidance Software Acquires CaseCentral
socalTech.com
Pasadena-based Guidance Software, which develops digital forensics and e-discovery software, said Tuesday afternoon that it has signed a definitive agreement to acquire CaseCentral, a developer of electronic discovery software.
Guidance Software to Acquire CaseCentralMarketWatch (press release)
GUIDANCE SOFTWARE, INC.: Guidance Software Reports Q4 2011 Financial Resul..4-traders (press release)

all 13 news articles »


1 Software Stock to Buy Now
DailyFinance
The company, which specializes in providing accounting, inventory management, and other operational software over the Web, projected $0.19 to $0.21 in adjusted earnings on $295 million to $300 million in profits. All figures represented an increase ...

and more »


Bradenton Herald

Hydrovolts Uses Autodesk Software to Create Plug-and-Play Water Turbines
MarketWatch (press release)
SAN RAFAEL, Calif., Feb 07, 2012 (BUSINESS WIRE) -- Clean technology innovator Hydrovolts is using software from Autodesk, Inc. /quotes/zigman/68719/quotes/nls/adsk ADSK +1.55% to create unique hydrokinetic turbines that are more easily installed in ...
Hydrovolts Turbine For Clean Energy Generation, Designed With The Help Of ...TheStreet.com (press release)
AUTODESK, INC.: Hydrovolts Uses Autodesk Software to Create Plug-and-Play ..4-traders (press release)

all 7 news articles »


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)
MontaVista Software Announces Support for Cavium OCTEON(R) III Multicore ...MarketWatch (press release)
eNewsChannels
all 63 news articles »


Tax Software Vs. An Accountant: Which Is Right For You?
San Francisco Chronicle
While the ever improving selection of tax preparation software certainly makes it easier to do your own taxes, it has hardly put Certified Public Accountants (CPAs) and other personal tax preparers out of business. There is no way around the fact that ...

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 »


Software Engineering Institute Hosts Free Software Architecture Virtual Event
MarketWatch (press release)
7, 2012 /PRNewswire via COMTEX/ -- The Carnegie Mellon Software Engineering Institute (SEI) will host "Architecting Software the SEI Way: Essential Steps Toward Mastery," a free virtual event on Tuesday, February 28, from 1 pm to 4:30 pm (ET).

and more »

Google News

Home | Site Map

Powered By: Free Work At Home Business Opportunity!

© 2006