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:

Data Center Knowledge

The Rationale Behind CA's Deal for Nimsoft
New York Times (blog)
CA's $350 million acquisition of Nimsoft, a performance software company, is its third purchase of the year, but this could arguably be its most important, ...
CA's Nimsoft Buy Returns Quick Money To Goldman Sachs, Two VC FirmsWall Street Journal
CA Grabs NimsoftZacks.com
CA grabs Nimsoft for its cloud computing lineupSearchCloudComputing.com
ITChannelPlanet -Newsday (subscription) -The Associated Press
all 182 news articles »


RadiSys Announces Acquisition of Pactolus Communications Software Corporation
MarketWatch (press release)
Pactolus' software solutions are installed in over 45 telecommunication service provider customers worldwide including major Tier 1 and Tier 2 carriers. ...
RadiSys buys Pactolus Communications SoftwarePortland Business Journal
RadiSys acquires Pactolus; terms not disclosedThe Associated Press
RadiSys Buys PactolusNorthwest innovation

all 59 news articles »



The Hindu

Opera Intros Mini 5 Browser For Android
InformationWeek
Opera Software on Thursday introduced an Android version of the Opera Mini 5 browser in beta. The announcement marks an expansion in the ...
Opera releases Mini browser beta for AndroidCNET
Hands On with Opera Mini for AndroidPC Magazine
Opera rolls out mobile browser for AndroidReuters
NewsFactor Network -ZDNet (blog) -BetaNews
all 137 news articles »


Lawson Software Announces Third Quarter Fiscal 2010 Results Date and ...
MarketWatch (press release)
About Lawson Software Lawson Software provides software and service solutions to 4500 customers in equipment service management and rental, fashion, ...

and more »


US Feb video games sales fall 15 pct -NPD
Reuters
LOS ANGELES, March 11 (Reuters) - Sales of video game gear and software in the United States slid 15 percent in February in their second straight monthly ...
February video game sales drop 15 percentThe Associated Press
February video game sales drop 15 percentmsnbc.com

all 73 news articles »


Panasonic Communications Assistant Software Offers a Variety of IP-Enabled ...
CNNMoney.com (press release)
Thin Client support -- Call History logging -- Multi-site networking and monitoring (with server version of software) For more information on Panasonic's ...

and more »


Long Island Technology Hall of Fame Names FalconStor Software CEO ReiJane Huai ...
MarketWatch (press release)
He later served as CEO of Cheyenne Software, which was acquired by Computer Associates, one of Long Island's largest technology companies. ...

and more »


Proactive Investors USA & Canada

Advent Software Announces Acquisition of Goya AS
CNNMoney.com (press release)
Advent Software, Inc. (NASDAQ: ADVS), a leading provider of software and services for the global investment management industry, today announced Advent's ...
Advent Software adds fund distribution platform to its product portfolioProactive Investors USA & Canada
Advent Software buys Norway's GoyaSan Francisco Business Times
Advent Software acquires GoyaTrading Markets (press release)
MSN Money
all 26 news articles »


SAIC to support C2 software development
UPI.com
US company SAIC announced it will support a command-and-control software development initiative as part of a indefinite-delivery/indefinite-quantity ...
SAIC Lands $625 Million Navy ContractInformationWeek
SAIC secures $625M Navy awardWashington Technology
Burroughs to direct Navy PEO C4IDefense Systems

all 91 news articles »

Google News

Home | Site Map

Powered By: Free Work At Home Business Opportunity!

© 2006