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.
|
|
|
Builders Beware
Which Type of Shop Can Rely On A Home Built System?Not all shops are at a disadvantage when it comes to building their own system. To determine which avenue a shop should take, owners must know what type of shops benefit from a self built solution and what type is better off purchasing one. Companies with a small number of people, where only 1 person estimates, prod...(related: Software)
40/sec To 500/sec
IntroductionSurprised, by the title? well, this is a tour of how we cracked the scalability jinx from handling a meagre 40 records per second to 500 records per second. Beware, most of the problems we faced were straight forward, so experienced people might find this superfluous.Contents* 1.0 Where were we?1.1 Memory hits the sky1.2 Low processing rate1.3 Data loss :-(1.4 Mysql pulls us down1.5 Slow Web Client* 2.0 Road to Nirvana2.1 Controlling memory!2.2 Streamlining processing rate2.3 What data loss uh-uh?2.4 Tuning SQL Queries2.5 Tuning database schema2.5 Mysql helps us forge ahead!2.6 Faster...faster Web Client
Importance Of Coding Standards
Programming Help for BeginnersWe write programs to instruct computers. When programming using a high level programming language like C++ or Java, we are using a syntax that is somewhat closer to human language...(related: Software)
Microsoft Great Plains Middle East - Arabic Language Support
Microsoft Business Solutions Great Plains is marketed for mid-size companies in North America, Europe, Asia Pacific, as well as in Middle East.One of the strengths of Great Plains is its ability to be localized. This makes Great Plains compatible with almost all countries in the world. Before, countries with different character sets like Chinese, Japanese, and Arabic are forced to use English in their Great Plains instal...(related: Software)
Php On-the-fly!
IntroductionPHP can be used for a lot of different things, and is one of the most powerful scripting languages available on the web. Not to mention it's extremely cheap and widely used. However, one thing that PHP is lacking, and in fact most scripting languages are, is a way to update pages in real-time, without having to reload a page or submit a form.The internet wasn't made for this. The web br...(related: Software)
Outlook... Not Just For Email! Using Your Outlook Calendar
Microsoft Outlook is one of the most widely used software programs for email, but if you're only using it for email, you're missing out on a great productivity tool! This month's column looks at a few wa...(related: Software)
Crystal Reports For Microsoft Rms ? Overview For Developer/report Designer
If you are software developer or database administrator - we would like to give you the clues on Crystal Report creation for Microsoft RMS
Microsoft Crm: Data Conversion ? Import From Act!
Best Software Act! is very popular CRM for small and mid-size organization. This system attracts business owner by its low price, plus system is very easy to use. However if your business is growing you should reach the moment to implement more advanced CRM solution. Natural question is ? how do we convert the data from Act! to new CRM solution and the mapping of your objects for conversion. You would probably like to avoid operator data entry with potential numerous errors and mistypes. Assuming that you are IT specialist, we'll give you technical side of Act to MS CRM data migration:? First you need to download Act! SDK from Best Software website? Install Act! SDK on the computer, where you plan to do programming? We'll use asynchronou...(related: Software)
Osi Layers Model
IntroductionDuring the early years of our modern computer era, very few standards and protocols existed between various manufacturers. However, as time went on and computer technology continued to improve and become more widespread, it became apparent that standards would be necessary to ensure compatibility. This was especially true with regard to networks, and networking technology. Since the main purpose of a network i...(related: Software)
Is Your Computer Sick?
Viruses and spyware usually show up on your computer one of two ways.Either they invade your system with a frontal assault like the Huns attacking the Romans, or they sneak in a back door like a cat burglar.Either way, once a virus or piece of spyware gets on your system, getting it off can rate harder than curing a severe case of trench foot!Viruses, malicious programs designed to disrupt normal computing, and spyware, programs intended to literally "spy" on your activities, can enter your computer a number of ways.Most commonly they enter your system through an email attachment, by sharing files with an infected computer by disk, as a "ride along" with a 3rd party program...(related: Software)
Oecomplete ? A Personal Information Manager
OEComplete is a utility for managing the personal information of the user. It is designed to be flexible and affordable even for the home user. OEComplete allows setting up appointments and tasks, and creates notes for easy reference. Recurrence, reminders and attachment enhance the competence in addition to import and export facility.For example, a weekly status meeting can be set to recur every...(related: Software)
How A Bug Challenges To A Software Professional
It is really interesting that a bug can create problem for a learned person even the bug is not alive. One day my one friend was working and a bug created much pro...(related: Software)
Microsoft Great Plains Implementation: Restaurants Supply Chain Management Example
Microsoft Great Plains serves majority of US based horizontal and vertical markets. Being relatively flexible and customizable ? it can fit your specific business requirements with light or deep customization. You can have portion of the system customization done by your in-house developers (such tools as Modifier with VBA, MS SQL Server stored procedures, Crystal Reports do not requi...(related: Software)
site-map - Copyright © 2008 | Contact Webmaster | All Rights Reserved. | Software