f2s_activate_driver

Applies to: Oracle, MS SQL, MySql/MariaDB, PostgreSQL Drivers

Syntax

f2s_activate_driver <driver>

Parameter

Description

driver

The name of the driver to load

Description

This command is used to load the Mertech Driver.

If multiple drivers are loaded, this command will set the passed driver as active, meaning that future commands will be directed at this driver. If the command is not able to load the driver or a non-Mertech driver is passed, an error will be generated. Additionally this command sets the _f2s_ActiveDriver and _f2s_ActiveDriverID global variables. _f2s_ActiveDriverID can be used with Get_Attribute/Set_Attribute to indicate which driver you’re referencing.

<driver> parameter values:

Database

Value

Oracle

fs2_or

MS SQL

f2s_ms

MySql/MariaDB

fs2_my

PostgreSQL

fs2_pg

Example

Use f2s.pkg
Use cMertechImageParser.pkg
// Load the Mertech MS SQL Driver
f2s_activate_driver "f2s_ms"

Error Codes

Error Code

Error Message

25001

This is not a Flex2SQL Driver.

25000

There is no Flex2SQL driver loaded to activate.

Related Commands

  • f2s_deactivate_driver

Replaces: Load_Driver