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...
As one of the last steps in the Btrieve migration process, you substitute the Pervasive Btrieve runtime dll (wbtrv32.dll or later version called w3btrv7.dll) with the Mertech runtime dll of the same name. The Mertech runtime dll codes the standard Btrieve operations so that they will work with the new SQL backend.
Note: A copy of the Pervasive dll is saved because many of the Pervasive tools require it.
Typically the Mertech version of the dll is placed in the directory with the application executable. If the dll is not placed in the directory with the application, it must be placed somewhere it can be found using the standard Windows dll search:
You may want to know whether the Pervasive or Mertech version of the dll was loaded with your application. Or, perhaps you want to know which version of the Mertech driver was loaded, or what version of the SQL server is currently connected. The BTR2SQL SDK includes a function B_EXTENDED_VERSION that can do all of this. This function is used just like any other BTRCALL. Below is C++ code that shows how to use B_EXTENDED_VERSION:
MDS_VERSIONINFO mdsVersionInfo;
status = BTRCALL(B_EXTENDED_VERSION, NULL, &mdsVersionInfo, &(dataLen=sizeof(mdsVersionInfo)), NULL, 0, MDS_VERSION_OF_DRIVER);
// If the Pervasive dll is loaded, INVALID_FUNCTION (1) is returned
if (status == B_NO_ERROR)
cout << "Mertech driver version for " << mdsVersionInfo.originalDllName << ": " << mdsVersionInfo.versionString << endl;
else
cerr << "Status " << status << " returned from B_EXTENDED_VERSION" << endl;
For additional information on the BTR2SQL SDK see the BTR2SQL User's Guide or the blog article titled The BTR2SQL SDK
Introduction Many independent software vendors (ISV) and corporate users still rely on applications that use a category of database collective called...
COBOL applications are the foundation of numerous essential business functions, especially within the banking, insurance, and government sectors....
Imagine breaking free from the constraints of old, monolithic systems and embracing the agility and innovation of cloud-based solutions.