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:

Fraunhofer IIS Delivers True End-to-End Internet Radio and Mobile Audio ...
Business Wire (press release)
In addition, Fraunhofer's solutions for mobile audio streaming, Internet radio and digital broadcasting are optimized for various platforms and operating ...

and more »


Telegraph.co.uk

Apple teases third-party AirPlay support, but details are scarce
CNET (blog)
Compatibility for Apple's AirPlay network audio streaming is coming to third-party audio products soon. According to an updated page on ...
Unanswered questions about third-party Apple AirPlay supportCNET Asia (blog)

all 1,491 news articles »


SPORTS BRIEFS: Huntingdon men's golf team ranked No. 2 in Div. III poll
Montgomery Advertiser
The Faulkner athletic department has contracted with STRETCH Internet, one of the industry leaders in live audio streaming, to bring Eagle sports broadcasts ...

and more »


SmartHouse

Game On With Logitech Accessories
SmartHouse
The Wireless Gaming Headset G930 promises 7.1 Dolby surround sound, gaming-grade wireless technology for uncompressed audio streaming, and comes with three ...

and more »


EBU Approves StreamTheWorld for Radio
Radio World
... agreement with StreamTheWorld, part of Ando Media group, that makes the company's live audio streaming platform available to all EBU radio members. ...



Sony Qriocity Set To Compete With Apple iTunes
USANewsWeek.com
Sony has entered the digital music market with its new video and audio streaming service Qriocity. Reports say it will come by the end of the year. ...

and more »


UberGizmo (blog)

Philips MCi900 and MCD900 hi-fi audio systems
UberGizmo (blog)
WIth Wi-Fi connectivity built-in, you can also enjoy Internet radio as well as wireless audio streaming within the comforts of your home. ...

and more »


CNET

6 Things Apple Should Announce at its September 1 iPod Event
PC Magazine
Lala used to be the backbone of Pitchfork.com's audio streaming pages, alas, those days are over. But did Apple buy the young company to squash the ...
Apple Confirms Sept. 1 Media-Centric EventNetworkWorld.com

all 1,549 news articles »


CNET Asia

Philips Fidelio iPad docking speaker
CNET Asia
... only mates with the Apple slate via the physical 30-pin connector, it also allows for Bluetooth audio streaming with the iPad, iPhone and iPod touch. ...

and more »


IMS estimate 63 million 'wireless in vehicle' unit sales in 2010
EE Herald
IMS Research on this regaurd says that Bluetooth has proved popular in handsfree calling and audio streaming. New additions to the Bluetooth family has ...


Google News

Generic Club Football UK E-shop  Top of Page home | site map  home Bookmark Us Now ctrl+d 1st 4 Games, shopping via this site cost no more than going direct and can often save you money with special offers. with questions or comments about this website, contact: Doug Carpenterposter shopping directory, shopping mall, poster online stores, directory, shopping mall directory, online shop, gifts, posters, art, prints, artist, order, malls, internet mall, shops 1st4games offer Video Games PC and Video Games, PlayStation 2, PC Games, Xbox, GameCube, Game Boy Advance and PSone