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:

Fake Antivirus Software Uses Ransom Threats
PC World
LU!tr, a malicious program that masquerades as antivirus software in order to sell worthless licenses for non-existent malware. On its own it accounted for ...

and more »


PC World

Duke Nukem Forever: From Vaporware To Software
Kotaku.com (blog)
By 2009, 3DRealms had collapsed, and the development duties were later passed on to Gearbox Software, the studio best known for Borderlands and the Brothers ...
[Update] Duke Nukem Forever brought back to life by GearBox SoftwareNeoseeker
Gearbox Software Unveils Duke Nukem ForeverGamespy.com
The Week in Review - Game, Set, NukemEscapist Magazine
MarketWatch (press release) -411mania.com -One News Page
all 223 news articles »


Ex-Goldman Programmer Gets One Count Tossed in Case Over Software Theft
Bloomberg
Cote said that because Aleynikov was authorized to work on Goldman's software when he is alleged to have stolen a copy, he can't be charged with ...

and more »



CNET (blog)

Out with the old: Apple says no software updates for original Apple TV
CNET (blog)
Apple has confirmed that it will not be releasing software updates for owners of the original models of the Apple TV which includes no ...

and more »


Degama Software Solutions Sets Sail for South America With Smartphone App Solution
MarketWatch (press release)
The forthcoming agreement would include Degama Software Solutions to provide full-service Smartphone application development for Brazcan SA utilizing ...

and more »


Smith Micro Software to Present at the CL King 8th Annual Best Ideas Conference
MarketWatch (press release)
Smith Micro Software, Inc. creates new possibilities by developing mobile applications and solutions to solve customer problems. Through our insight into ...

and more »


Sydney Morning Herald

Apple iOS 4.2 Software Update: Apple iOS 4.2 with 100+ Features Comes in November
Tech Techies (blog)
Apple iOS 4.2 Software Update: iOS 4.2 Software update coming soon to your iPad. Apple has announced iOS 4.2 software features before releasing to the air. ...
Developers Debate iOS 4.1 Proximity Sensor FixPC World
Android Opens Up The Operating System For InnovationMobile Dev & Design
Apple iOS 4.1 Available from 8th September: Download iOS 4.1Tech Techies (blog)

all 266 news articles »


Take-Two Interactive Software Surges After Strong Earnings Report
DailyFinance
Take-Two Interactive Software (TTWO) surged in after-hours trading on strong earnings reported Thursday after the market close. Pre-market trading on Friday ...
Take-Two Interactive Software (TTWO) Rating Maintained at Piper JaffrayComtex Smartrend
Take-Two Interactive Software Is Climbing On Q3 NewsRTT News
Take-Two Trounces Analyst ExpectationsMarketNewsVideo.com
StreetInsider.com (subscription) -Beacon Equity Research (blog) -Benzinga
all 27 news articles »


Macgasm (blog)

AutoCAD Returns To Mac
InformationWeek
Autodesk's 3D engineering design software coming to Apple computers after a 20-year absence, with new mobile apps for iPad, iPhone. ...
Autodesk Will Reintroduce Its AutoCAD Design Software for MacsNew York Times
AutoCAD returns to the Mac, mobile app offeredCNET
Autodesk to Offer Macintosh Version of AutoCAD AgainWall Street Journal
Financial Times -PC World -Forbes (blog)
all 169 news articles »

Google News

Home | Site Map

Powered By: Free Work At Home Business Opportunity!

© 2006