Skip to the main content.
Downloads Try Thriftly
Downloads Try Thriftly
Group 762

Migrate and run DataFlex applications with Oracle, MS SQL Server, PostgreSQL, MySQL &  MariaDB.

flex2Crystal

Stuck in Crystal XI?  Upgrade and use the latest versions of Crystal Reports with DataFlex applications. 

BTR2SQL

Convert from Btrieve / P.SQL / Actian transactional engines to Oracle, MS SQL Server, and PostgreSQL

thriftly-1

Quickly build multi-protocol web services with the same API. Supports JSON-RPC, REST, SOAP,  Thrift, and gRPC.

 Group 671-1

 

Why Mertech?

1 min read

New Command: SQL_ENABLE_RECONNECT

SQL_ENABLE_RECONNECT allows the MySQL Driver to automatically reconnect to the server after the connection has been closed by a time-out. In the MySQL my.ini file you can set a system variable called wait_timeout to set the number of seconds that the server will wait on a non-interactive connection before it closes the connection. The default value for this variable is 28800 (8 hours). See also the MySQL manual under Server System Variables and more specifically the variables wait_timeout and interactive_timeout.

Syntax

SQL_ENABLE_RECONNECT of <ServerName> to dftrue/dffalse
Argument    	      Explanation
sServer Server Name.
bstate True/False - DFTrue/DFFalse.


Example:

#include mertech.inc


String sServerID
String sUser
String sPassword
Integer bStop


Move "YourServerID" To sServerID // Server ID or IP number
Move "user" To sUser
Move "password" To sPassword


Login sServerID sUser sPassword MYSQLFLEX


SQL_ENABLE_RECONNECT Of sServerID To dftrue
Open Customer
Clear Customer


Move (false) To bStop


While not (bStop)
find Gt customer by index.1
showln "Customer: " customer.customer_number "-" customer.name


// Selecting "No" makes bStop return True
Get Confirm "Do you want to find the next record?" To bStop
Loop


Send Info_Box "Hello World" "VDF Basic Application"

 

Legacy Application Modernization: Key Steps, Benefits & Best Practices

Legacy Application Modernization: Key Steps, Benefits & Best Practices

This blog post was co-authored with Riaz Merchant, President and CEO at Mertech. In the fast-paced software world, 'legacy' often signals a warning.

Read More
Hybrid Cloud Migration: Plan, Process and Advantages

Hybrid Cloud Migration: Plan, Process and Advantages

This post was co-authored with Riaz Merchant, President/CEO at Mertech Data Systems, Inc.

Read More
Financial Benefits of Cloud Migration & Hybrid Cloud Applications

Financial Benefits of Cloud Migration & Hybrid Cloud Applications

Shifting from your traditional legacy systems to the Cloud can be a game changer, as the benefits of cloud migration are numerous. Cloud computing...

Read More