Skip to content

Load_Driver

See Also: Unload_Driver

Purpose

Loads a database driver.

Syntax

Load_Driver {driverName}

Where driverName is the name (string) of the database driver. The names of drivers available from Data Access Worldwide are:

  • "DATAFLEX" for the embedded database
  • "DB2_DRV" for the DB2 Driver
  • "DFBTRDRV" for the DataFlex Pervasive.SQL Driver
  • "MSSQLDRV" for the Microsoft SQL Driver
  • "ODBC_DRV" for the DataFlex ODBC Driver

What It Does

Load_Driver loads a database driver into DataFlex. Use the Load_Driver command to access database tables that are stored in non-embedded databases.

Sample

This sample loads the SQL Server driver.

Load_Driver "MSSQLDRV"

Notes

  • The embedded database ("DATAFLEX") driver is always loaded and cannot be unloaded.
  • It is not necessary to unload one driver before loading another; multiple drivers can be loaded at the same time.