eBusiness Help
Serve ads that make sense. And money.
->> More Info
Rackspace managed Hosting: Fanatical Support™ and Guaranteed 100% network uptime.
1 hour hardware fix and many more business critical support features.
Sweet deals for iEntry members! Out with the old, in with the new...
if you have equipment that qualifies for trade-in, get a discount of up to 20%* off the Web price on featured IBM ® ThinkPad ® notebooks.

WebProWorld Dev Forum
How do I implement a look up table?
I would like to introduce a feature where a site user selects a starting city from a drop down menu and a destination city from another drop down.

CSS and the border-color command
Hi all, I need some help, no matter where I search I can't find "how to" make a border color, where the outside borders AND the inside borders are colored.


Recent Articles
Dell's Database Double-Edge
Dell recently unveiled 2 new database servers, systems management software and data center assessment services.

Oracle Integration with Microsoft CRM
Oracle has a huge number of installations worldwide and Microsoft Business Solutions CRM is gaining its market share on the CRM market...

The Seven Deadly Habits of a DBA... And How to Cure Them
Calling widespread bad habits in database administration "deadly" may seem extreme. However, when you consider the critical nature of most data...
04.05.05


Microsoft Great Plains SQL Reporting And Data Fixing

By Andrew Karasev

This is beginner level SQL scripting article for a DB Administrator, Programmer, or IT Specialist.

Our and Microsoft Business Solutions' goal here is to educate the database administrator, programmer, and software developer to enable them Microsoft Great Plains support for their companies. In our opinion self support is the goal of Microsoft to facilitate implementation of its products: Great Plains, Navision, Solomon, Microsoft CRM. You can do it for your company, being aware of simple data repair techniques and appealing to Microsoft Business Solutions Techknowledge database. This will allow you to avoid expensive consultant visits onsite. You only need the help from a professional when you plan on complex customization, interface or integration, then you can appeal to somebody who specializes in these tasks and can do inexpensive nation-wide remote support for you.

Let's look at simple data repair techniques.

1. How to delete the user:

If the user, shuts down their computer, before signing off Great Plains - she/he will get the message that she/he is already signed. Then you need to delete the user from the activity table. Run the query below against DYNAMICS database - it will unlock the user:

delete ACTIVITY where USERID='MARIE'

2. How to unlock the batch:

From our experience - this is the second FAQ we are hearing from Great Plains administrators. Run this script against company database to unlock hanging batch:

The ePilot search feed can be customized to seamlessly fit into your site's content. Our partners earn a share of each cost-per-click bid generated from traffic on their site. >>Learn more...

update SY00500 set BCHSTTUS=0 where BACHNUMB = 'BATCH0023'

Sometimes you also have to run this script against the DYNAMICS database (if first script doesn't do the job)

delete SY00800 where BACHNUMB = 'BATCH0023'

3. Some Reporting Queries - Before we go there, we would like you to be able to find the table with the data you are looking for. 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.

Now lets query Customer Master table:

select CUSTNMBR, CUSTNAME from RM00101 where STATE='CA'

This query will return Customer Number, Customer Name for all the customers in California

Next query will give you top 10 Inventory Items with the best Sales Results

select a.ITEMNMBR, a.ITEMDESC, b.SALESNUMBER from IV00101 a join (select top 10 ITEMNMBR, count(ITEMNMBR) as SALESNUMBER from SOP30300 where SOPTYPE=3 group by ITEMNMBR order by count(ITEMNMBR) desc) b on a.ITEMNMBR=b.ITEMNMBR


About the Author:
Andrew Karasev is Chief Technology Officer in Alba Spectrum Technologies – USA nationwide Microsoft CRM, Microsoft Great Plains customization company, based in Chicago, California, Texas, New York, Georgia and Florida and having locations in multiple states and internationally (www.albaspectrum.com), he is Dexterity, SQL, C#.Net, Crystal Reports and Microsoft CRM SDK developer.

About SQLproNews
SQLproNews is a collection of up to date tutorials and insightful articles designed to help SQL users of any skill level implement successful SQL systems and practices. SQL Strategies and Tactics for Business

SQLproNews is brought to you by:

SecurityConfig.comNetworkingFiles.com
NetworkNewz.comWebProASP.com
DatabaseProNews.comSQLProNews.com
ITcertificationNews.comSysAdminNews.com
SQLproNews.comWirelessProNews.com
CProgrammingTrends.comSysAdminNews.com



-- SQLProNews is an iEntry, Inc. publication --
iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509
2005 iEntry, Inc.  All Rights Reserved  Privacy Policy  Legal

advertising info | news headlines | free newsletters | comments/feedback | submit article

SQL Strategies and Tactics for Business SQLproNews News Archives About Us Feedback SQLproNews Home Page About Article Archive News Downloads WebProWorld Forums Jayde iEntry Advertise Contact