Skip to the main content.
Downloads Thriftly Login
Downloads Thriftly Login
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

Seamlessly convert from Btrieve transactional database to PostgreSQL, Oracle, and MS SQL Server.

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

Embedded SQL using Mertech Drivers

Mertech has a comprehensive SQL command set for embedding SQL statements. Starting with v12.1, Mertech also provides a class layer that allows you to use the embedded SQL (ESQL) classes available in the DAW SQL.pkg. The Mertech class layer adds full compatibility for the DAW SQL.pkg classes and provides an ESQL interface that some may find easier to use.

Mertech’s new class layer implements a unified ESQL interface across all of our drivers, allowing for applications to migrate to database servers DAW does not support, such as MySQL and PostgreSQL.


With a few simple code changes, you can use your existing VDF applications with Mertech's new ESQL interface.

  1. Add a Use statement to include the Flex2SQL.pkg.
    The Flex2SQL.pkg is automatically copied to your VDF development environment when you install v12.1

  2. Modify your connection method.
    The DAW drivers use an interface that supports connection strings. Mertech's drivers connect in a manner in which connection strings are not needed. Because of this, the connection method in your code may need to be modified.  


DataFlex code example (code changes shown in red):

Use Flex2SQL.pkg // replaces the DAW SQL.pkg
Handle hSQLConnect hStmt
String val
Get SQLConnect of _embsqlghoSQLHandleMngr "SQL_DRV" "(localdb)v11.0" to hSQLConnect
Set SQLDatabase of hSQLConnect to "MTSample"
Get SQLOpen of hSQLConnect to hStmt
Send SQLSetProcedureName of hStmt "testfunc"
Send SQLSetNextArgument of hStmt 80
Send SQLCall of hStmt
Get SQLReturnValue of hStmt to val
Send FreeHandle of hStmt

 

Why Migrate from Btrieve to PostgreSQL and other Relational Databases?

Why Migrate from Btrieve to PostgreSQL and other Relational Databases?

Introduction Many independent software vendors (ISV) and corporate users still rely on applications that use a category of database collective called...

Read More
Four Challenges in Converting COBOL Applications from ISAM Databases to Relational Databases

Four Challenges in Converting COBOL Applications from ISAM Databases to Relational Databases

COBOL applications are the foundation of numerous essential business functions, especially within the banking, insurance, and government sectors....

Read More
Application Modernization 101: Ultimate Guide to Digital Transformation

Application Modernization 101: Ultimate Guide to Digital Transformation

Imagine breaking free from the constraints of old, monolithic systems and embracing the agility and innovation of cloud-based solutions.

Read More