Bde.DBTables.TDatabase.DriverName

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property DriverName: string read GetDriverName write SetDriverName;

C++

__property System::UnicodeString DriverName = {read=GetDriverName, write=SetDriverName};

Properties

Type Visibility Source Unit Parent
property published
Bde.DBTables.pas
Bde.DBTables.hpp
Bde.DBTables TDatabase

Description

Specifies the name of the BDE driver for the database.

Use DriverName to specify the name of the BDE driver to use for databases connections that do not specify an AliasName, but that do specify a DatabaseName. DriverName must be a valid BDE driver (for instance, STANDARD, ORACLE, SYBASE, or INTERBASE).

Note: If an application sets DriverName, it must also specify connection parameters in the Params property. Ordinarily the alias specified in the AliasName property supplies connection parameters, but when DriverName is set, the AliasName property is automatically cleared to avoid BDE driver name contention.

Attempting to set DriverName when the Connected property is true raises an exception.

Tip: At design time double-click a TDatabase component to invoke the Database editor and set the DriverName.

See Also