The ODBC Interface provides a mechanism for the ATT software to communicate with an Asset Register that supports an ODBC interface mechanism as illustrated in the diagram.
The ODBC interface is most commonly used to interface the ATT software with Microsoft SQL Server, Microsoft Access or a third party management software package that supports ODBC connections.
The diagram below displays the components involved in the communication between a generic ODBC host and the ATT software.
ODBC Data Source Configuration
On the machine that will run the ATT Translation and Interface software, the ODBC data source must be configured using the control panel called “ODBC Data Sources”. The default data source name to use is “ATT Data Source”.
Custom SQL Technique
The ODBC interface supports custom SQL queries should you wish to perform more complex interfacing with existing tables. This provides a very flexible and advanced technique for interfacing. This is now the preferred technique.
Using custom SQL queries, you avoid the need to create additional tables in your database.
ATT Pre-Built Queries Technique
If you wish, the ATT system has pre-built queries and table structures to use if you find this approach easier.
The customer’s Asset Register must first populate a table in their database, known as “TO_SCANNER”. The ATT software will connect to the ODBC data source and copy the whole contents of the “TO_SCANNER” table onto the local machine.
The ATT software will take data from the device and translate it into a format suitable for the Asset Register. It will then open an ODBC connection to the data source, and deliver the count information to the table “FROM_SCANNER” inside the desired database. Note that the previous contents of the “FROM_SCANNER” table will be deleted as this transfer takes place. The customer may then perform whatever reconciliation reports or data transfers are desired to populate the results of this count back into their management system. It is the customer’s responsibility to write whatever queries or reports are required in performing this step.
The table below describes the “TO_SCANNER” and “FROM_SCANNER” table schemas for ATT. Note that all fields are character fields, and have fixed length. It is recommended that the field names supplied here be used, however other field names should function correctly.
|The primary key. This must have the exact contents of the item bar code. Typically this is copied from the “assetnum” field or the “inventorynum” field.
|The counted date in “YYYYMMDD” format. The contents of this field are overwritten with the current date when scanning an item.
|The counted time in “hhmmss” format. The contents of this field are overwritten with the current time when scanning an item.
|Flag to indicate if the item was counted.
|Flag to indicate multiple records. Used internally by ATT.
|The inventory number or tag number of the item. Often used as the bar code of the item. Copy this value to the “key” field to use it as the bar code with ATT.
|The asset number of the item. Sometimes used as the bar code of the item. Copy this value to the “key” field to use it as the bar code with ATT.
|Responsible Cost Centre
|Class or type
|Asset or item sub-number
|User ID. If blank, this is automatically populated with the identity of the scanner that performed the scanning. The scanner ID is the PalmOS “user name”.
|Licence Plate. This is sometimes used as a serial number if the “serialno” field is not long enough.
|Sub location text
|Scanned verses keyed input status. Non blank for scanned input.