Statit Support Articles
Administration
Frequently Asked Questions
How-to
ODBC
Sample Code
 
Quality Practice Tips

Subscribe to Statit Bulletin, our quarterly SPC/Quality Resource e-newsletter

Your Name:
E-mail:
Company:
Industry: Healthcare
Manufacturing
 

Statit & ODBC: How it Works


Abstract: General information about how the ODBC mechanism works in Statit 5.x.

Products: Statit e-QC, Statit e-Server, Statit Custom QC, Statit Express QC

The title How it Works is a bit grandiose for the real intent of this document. Rather, take this document as an overview of how Statit interfaces with ODBC.

Overview

Statit ODBC code talks to the ODBC Driver Manager installed on your system. The Driver Manager talks to the ODBC Driver for the Data Source you have defined. The Driver sends the connect string or query to the Database and retrieves the results.

Getting It Working

You start by defining a Data Source using the ODBC Administrator. The Administrator is available from the Control Panel, or from the "Select a Data Source" dialog, the New or Admin buttons of Statit Custom QC and Statit Express. Once the Data Source is defined, you connect to it using the Statit selection File|Import|Connect to Database, which brings up the "Select a Data Source" dialog.

Correctly defining a Data Source is pretty intuitive when using the Administrator. It is beyond the scope of this document to go into details. Just note that the ODBC Driver you use may have to be purchased from the vendor of the database you wish to access.

Requirements

These requirements are mostly handled by Statit's installation and by the ODBC Driver Manager. They are noted here for your information in the event of a problem.

  • ODBC Driver Manager: 32-bit, ODBC Level 3
  • ODBC Driver: 32-bit. The Driver Manager is suppose to handle differences between ODBC Level 3 and Level 2 if your driver is at Level 2.

Related Files

These files should all be of the same version level. They are in \WinNT\System32 or \Windows\System. The Administrator Control Panel should give you all the information you need about these files.

  • Administrator: odbccp32.DLL
  • Control Panel: odbcad32.DLL
  • Driver Manager: odbc32.DLL
  • Localized Resource: odbcint.DLL

What You May See

The code generated by Statit's Query Tool (Statit Custom QC or Statit Express) is SQL which meets the specifications for ODBC Level 3. Thus, you may see some things which look a bit strange if you are used to the specific SQL for your database. ODBC is a more generic means of communicating to a variety of databases, so the standard for ODBC code differs slightly from generic SQL code.

In generating the Where Clause, if you test against a date value, Statit will generate a date value of the following form:

{ts 'YYYY-MM-DD HH:MM:SS'}

If you would like additional information, please call our Support staff at (541) 752-4100 or send email to .