Sample ODBC/SQL queries for getting Sales Order information, Customer Information, and inventory information?

SUGGESTED

Can anyone offer any sample SQL scripts for getting information, such as Customer Information (given a customer ID), sales order information (given a sales order number or customer ID), and/or inventory information (given an Item ID) out of the database using an ODBC connection?

I've gone through some of the documentation in the Sage 50 help file, but this only really givens a general overview of certain files used in the database, primarily for use with Crystal Reports which I will not be using.

I'm needing to write an app for our business that will utilize this information (as I can't find a suitable third-party app for our specific needs at the moment).  Specifically,  I will be using an ODBC connection to the Sage 50 database, and will be working in C# (Visual C#).  I will only be reading information, so I will not be changing or writing information back to the Sage 50 database.

Thanks

Parents Reply Children
  • 0 in reply to downsouth

    same as PLaLonde ... happy to respond, but want to ensure need is current.  ... a simple answer is create Crystal Reports report using ODBC driver and copy SQL into program ....

  • 0 in reply to JBrosch

    My needs are more complex then just a report although that is some of it  I am not a crystal guy (FYI:  I am NOT interested is hearing from contract labors and guns for hire.).  We use Sage 50 US.  I am building my own modules to track shipping and better integrate MISys and Sage combined reporting et cetera (FYI:  I am not interested any sales pitch about any Sage upgrades to other packages).  It is key that I have fast and efficient look-ups against Sage 50.  ODBC is not fast or efficient.