Microsoft Dynamics GP Developing for Dynamics GP
A blog dedicated to the Microsoft Dynamics GP Developer & Consultant community
 
Welcome to MSDN Blogs Sign in | Join | Help

Developing for Dynamics GP

by David Musgrave (Australia) and the Microsoft Dynamics GP Developer Support Team (USA)

News

  • Please use the Blog Feedback? - Contact Us link at the top of the page to email questions relating to the blog itself.

    If you wish to ask a technical question, please use the links below to ask on the Newsgroups. If you ask on the Newsgroups, others in the community can respond and the answers are available for everyone in the future.

    Please do not use comments on pages and posts to ask questions unrelated to the topic on that page or post.



    Dates of Interest:

    11-Jul-2008: Blog Created by David Musgrave.
    10-Oct-2008: First Post by Scott Stephenson.
    04-Nov-2008: First Post by Dave Dusek.
    11-Nov-2008: First Post by Beth Gardner.
    28-Nov-2008: First Post by Chris Roehrich.
    30-Dec-2008: First Post by Patrick Roth.
    24-Feb-2009: First Post by Greg Willson.
    22-Apr-2009: First Post by David Clauson.
    04-May-2009: First Post by Ryan Wigestrand.
    19-Jun-2009: First Post by Dawn Langlie.
    03-Jul-2009: First Post by Emily Halvorson.



    WorldMaps Statistics since
    24-Feb-2009:






    Translator Tool:




    Disclaimer

    This blog is provided "AS IS" with no warranties, and confers no rights.

    The links in this blog may lead to third-party Web sites. Microsoft provides third-party resources to help you find customer service and/or technical support resources. Information at these sites may change without notice. Microsoft is not responsible for the content at any third-party Web sites and does not guarantee the accuracy of third-party information.

Contents

Favourite Posts

Blog Links

Newsgroups Links

Resources Links

What is Column desSPRkmhBBCreh?

David Meego

If you have ever spent time analysing a DEXSQL.LOG file you might have seen a reference to a table column called desSPRkmhBBCreh.  This post explains what this column is used for and why it has the name it does.

For example:

SELECT desSPRkmhBBCreh FROM DYNAMICS.dbo.SY02100
[Microsoft][ODBC SQL Server Driver][SQL Server] Invalid column name 'desSPRkmhBBCreh'.

The Knowledge Base (KB) article What is the column 'desSPRkmhBBCreh' ? (KB 875229) Secure Link gives the following information:

Question:
What is the column name 'desSPRkmhBBCreh' that shows up in the DEXSQL.LOG file?

Answer:
This is the way that Dexterity determines if a table exists. We select a bogus column 'desSPRkmhBBCreh' from the table in question. It will either return 'Invalid column' or 'Invalid object'. If it is 'Invalid object', we know the table does not exist. This is faster than querying the system tables to find out whether a table exists.

What the KB article does not explain is what the letters of this "bogus" column name represent.  They are infact the initials of five of the developers who worked on the changes needed for Dexterity to support Microsoft SQL Server.  Below is a table with the initials and the names:

des Dan Seefeldt
SPR Sean Ryan
kmh Kevin Honeyman
BBC Bruce Chenoweth
reh Ray Holzhey

Below is an explanation from Sean:

If you want more info on where this came from, when we were working on the SQL product using an early version of ODBC, I found that it was taking quite a bit of time to invoke a meta data operation to determine if a table existed.  We were doing this check a lot because Dexterity had the feature by default to auto create tables if they did not already exist.  When I tried accessing a table that didn’t exist with a SQL query  the result came back much faster with a "table not found" SQL code error. So I used this approach, picking a table column name that was unlikely to ever exist in a production environment.  We were so under the gun trying to get the product out the door that I never had the time to go back and change this.  I guess no one else has had time to change it either.

To activate SQL logging to create the DEXSQL.LOG file, you can either use the Support Debugging Tool or refer to the KB article below:

How to create a Dexsql.log file for Microsoft Dynamics GP (KB 850996) Secure Link

Note: Do not leave logging active in a live environment unless currently working on resolving an issue as it will have a performance overhead and eventually will create a file 2 GB in size.

Hope you enjoyed another little bit of history.

David

Posted: Wednesday, October 15, 2008 3:36 PM by David Musgrave
Filed under: , ,

Comments

David Musgrave said:

# October 15, 2008 7:50 PM

David Musgrave said:

# October 15, 2008 7:51 PM

David Musgrave said:

# October 16, 2008 7:33 PM

Developing for Dynamics GP said:

Many people who have not been working with Microsoft Dynamics GP since the early non-SQL versions of

# May 27, 2009 11:21 PM
Leave a Comment

(required) 

(required) 

(optional)

(required) 

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Page view tracker