Home » Categories » Multiple Categories

Connection to SQL Server via ODBC and SQL Log Housekeeping

SQL Replicator

Connection to SQL Server via ODBC

 

The Datafile SQL Replicator connects directly to a MySQL or MsSQL Server.  Where the server is on a remote connection you may want to use SSL.   The existing connection options don’t allow this but you can now connect via ODBC – with ODBC set to use SSL.

 

To enable connection via ODBC you need to setup your ODBC connection to the SQL Server and apply your required security settings.  Once in place you then need to enable the Datafile SQL Replicator to use the ODBC connection.  

 

To this you need to manually enable two Registry settings.  The relevant entries to enable ODBC are in the registry key

 

HKLM\SOFTWARE\WOW6432NODE\Datafile Software Solutions Limited

 

within here you’ll have nodes for Datafile Replication\DF2SQL\SQLConnections\SQLConnectionnn

 

 

ODBC DSN – modify to include the name of your System DSN connection.

Use ODBC DSN – modify to set to ‘1’ to use the ODBC DSN connection.

 

 

Note

 

If you are adding ODBC connectivity to an existing SQL Connection you may find that the two ODBC registry values are not in place.  Open the SQL Monitor and then close – this will automatically add the new registry keys.

 

 

 

SQL Log Housekeeping

 

As part of replicating the Datafile tables to MsSQL or MySQL the system maintains an activity log within a table DF2SQLLog.  This log file expands over time and may need to be periodically cleared down to keep the SQL Database size down.  This new feature allows the SQL Replicator to perform this housekeeping – retaining a set number of days.

 

As part of the SQL Configuration for the Replication Stream a new option allows you to set the retention period.

 

 

Time – set the time to perform the cleardown of the DF2SQLLog table – the time set should not be within the ‘excluded times’ for processing.

 

Log Days to Retain– set the number of days to retain when cleardown the log table.

 

 

Note

 

Once set, to enable the Replicator to clear down you will need to stop and restart the service.

 

 

 

 

 

 

 

 

Custom Fields
  • Release ID: 7.0
Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
Selection Criteria Range ‘Value’ Input
Viewed 2762 times since Fri, May 27, 2016
Sales/Purchase - Links to Order Enquiry from Transactions
Viewed 3400 times since Tue, Jun 12, 2012
Output to Pivot Tables - Accept and Save Options
Viewed 5356 times since Tue, Jun 12, 2012
Windows 10 1803 Update / Windows Defender
Viewed 3694 times since Wed, May 30, 2018
Ledger Enquiry - Display Stock Locations in Enquiry Panel
Viewed 733 times since Tue, Oct 15, 2024
Large File Sizes
Viewed 2774 times since Mon, Jun 11, 2012
Installing the Datafile SQL Driver
Viewed 3727 times since Thu, Jul 5, 2012
Stock Enquiry - History / Detail Database Options
Viewed 10576 times since Mon, Nov 25, 2013
Database Activity Alerts
Viewed 3197 times since Tue, Jun 12, 2012
Automatically Display Linked Files - Allow Items from Lookup Database in History/Details List - Link to BOM Detail Pick List
Viewed 2721 times since Fri, Jul 21, 2017