Home » Categories » Solutions by Business Process » SQL

Configuring the Datafile System

Datafile Software

Configuring the Datafile System

Adding the DFSQL User

In operation the Datafile SQL Driver accesses the Datafile System with a DFSQL user-id and this user-id needs to be added to the list of user-ids within Datafile as entry 90.

Set the User-Id, Full-Name and Password as DFSQL – leave all other options blank / unset. For multi-connection purposes you may also want to define entries 91-99 as DFSQL0 through to DFSQL8 – setting the password equal to the user name. If the system reports that DFSQL is in use then will move on to DFSQL0 and so on.

Setting a Database to be mirrored in SQL

When restructuring a Database press <F4-Select> and choose ‘Advanced Features’

Mirror this db in SQL – set to Y for the database to be mirrored.

Refresh Structure / Content – selected processes will perform a Database Refresh rather than output the individual record add/update/delete entries to the SQLDET database to improve processing speed. This option asks whether these refreshes dropt the table and re-create or empty the table and re-output, the latter may be desirable if you modify the SQL table to include additional items. Select as required – note though that Database Restructure will always drop the table and recreate.

Once set all data items will be mirrored by default – if you want to restrict the items mirrored then, from the data items list, you press <F4-Select> again and choose ‘Database INI Options’

If want to mirror most items set the tick box on the ‘ALL Select’ line and then switch off the items you do not require, otherwise tick the individual items required. We suggest that you do not take pointer items across – FIRST-TX, LAST-TX etc – particularly when mirroring transaction / detail files. The SQL option button is not relevant for SQL Output.

Notes

When you mark a database to be mirrored the path/filename is also updated into a DFSQL.INI file. This file is used in system refresh procedures

Mapping a Database to be Updated from SQL

 

When restructuring a database press <F4-Select> and choose Database INI Settings before selecting the SQL button.

Here you may the Datafile Database item to the SQL table item by recording the SQL table name followed by the item name.

Certain items may require extra detail, for example dates, so that correct formatting for Datafile databases is maintained.

SQL Maintenance Options

Within the Datafile Database Utilities menu you may have a menu option SQL Maintenance Options which provides tools for viewing and refreshing the Datafile Databases mirrored to SQL.

List SQLDET Entries –performs a Datafiler List Records on the SQLDET.DFD. When selected you will be prompted if you wish to omit updated (ERR-STAT equals D-Done) and error (ERR-STAT equals E or EO) entries.

Refresh All SQL Databases – triggers refresh of all mirrored Datafile databases. When selected will prompt if wish to cleardown and compact the SQL database (this clears entries for the mirrored database – whether marked as done or not – before writing the refresh entry)

Refresh A SQL DB (Delete / Recreate) – allows manual refresh of a Datafile Database to SQL. This option drops the SQL table and then recreates the table.

Refresh A SQL DB (Erase / ReOutput) – this refreshes the content of the SQL table from the Datafile Database but not the structure.

Cleardown SQLDET Entries – this option deletes any SQLDET entries marked as D-Done and optionally clears any entries with an error status also.

Custom Fields
  • Release ID: Standard
Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
SQLDET Database Structure
Viewed 4317 times since Mon, Jun 11, 2012
Datafile SQL Configuration
Viewed 1887 times since Thu, Jul 5, 2012
Additional SQLDET.DFD Maintenance Options
Viewed 9089 times since Mon, Jun 11, 2012
Datafile SQL Monitor
Viewed 2108 times since Thu, Jul 5, 2012
Database Refresh - Empty Table and Re-Import Data
Viewed 2294 times since Mon, Jun 11, 2012
Connection to SQL Server via ODBC and SQL Log Housekeeping
Viewed 4222 times since Fri, Jul 21, 2017
Installing the Datafile SQL Driver
Viewed 2613 times since Thu, Jul 5, 2012
SQL In
Viewed 1974 times since Thu, Jul 5, 2012
Running the SQL Manager
Viewed 2233 times since Thu, Jul 5, 2012
Datafile SQL Driver
Viewed 2258 times since Thu, Jul 5, 2012