| Home | |
| Download | |
| Register | |
| Tutorial | |
| Help | |
| Site index | |
| Contact info |
DTBuild can interact with a user-defined database. It uses ODBC, "Open Database Connectivity", to :
The user must :
ODBC allows software products to interact with a wide variety of Database Management Systems (DBMSs). The DBMS must provide a software component known as an ODBC "driver". Most DBMSs available on Windows platforms provide ODBC drivers.
A simple database can be created in a matter of minutes. Steps 2 and 3 are even simpler, once you know how ...
The user must provide the "target" database. This will typically involve using a DBMS (Database Management System) to create one or more tables.
A table is defined as a group of "columns", or "fields". Each field has attributes :
Here's how to create a database using Microsoft Access :
A few hints :
At times DTBuild will appear to scan the input correctly, but the target database will be empty or missing some expected data. The cause is very often a mismatched data type, or insufficient field width(s). A good general strategy is to "relax" the table initially - create all "memo" fields, or "text(255)", then tighten the table up after it's loading correctly.
Check the program's status box at the bottom after a run - if it says "View log for messages" there's something that needs attention. Check the log (View/Log option). The messages are sometimes cryptic, but helpful more often than not. If you're having trouble you can submit the log (if it's huge just send the top 50 / bottom 50 lines or so).
Contact INFO X & O for assistance with database issues.
The user must configure an ODBC "Data Source Name" (DSN) for the database. This is a simple process of choosing a label and applying it to the database. A Windows program: the ODBC Data Source Administrator, is used for this purpose.
The ODBC Data Source Administrator program can be started in several ways :
These options are presented because the ODBC Data Source Administrator can be difficult to locate on some systems. The program's file name is ODBCAD32.EXE, and it is often (but not always) in the \WINDOWS\SYSTEM32 directory. Contact INFO X & O if you have trouble finding it.
Once you are running the ODBC Data Source Administrator choose the "Add" option in the first dialog to add a new Data Source :
In the next dialog choose the appropriate ODBC driver for your DBMS :
The next dialog, which is DBMS-specific, allows you to specify the Data
Source Name and the location of your database :
Once you have specified the Data Source Name, the driver, and the database
location you are ready for the next step - connecting DTBuild to the
Data Source you have just configured ...
After setting up the database and the ODBC data source, configure the new Data Source Name in DTBuild :
This will establish DTBuild's connection with the database and make the database table and field names visible within the DTBuild definition as "targets".
SQL statement for creating sample table "message" : SQLMessage.txt.
SQL statement that works with Microsoft Access : SQLMessageA.txt. Memo fields are used rather than char(n) (because MS Access fails to load the record if the character allocation for any field is exceeded).
DTBuild has been tested with Microsoft Access 2000-2003 and Microsoft Visual FoxPro 6.0, and should work with any DBMS that provides a suitable ODBC driver.
| Home | Download | Register | Tutorial | Help | Site index | Contact info |