Data.SqlExpr.TSQLConnection.DriverName

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property DriverName: string read FDriverName write SetDriverName;

C++

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

Properties

Type Visibility Source Unit Parent
property published
Data.SqlExpr.pas
Data.SqlExpr.hpp
Data.SqlExpr TSQLConnection

Description

Specifies the database driver associated with the SQL connection.

If you are not using named connections, set DriverName to the name of an installed dbExpress driver such as ASA, ASE, Datasnap, Db2, Firebird, Informix, InterBase, MSSQL, MSSQL9, MySQL, Odbc, and Oracle. Installed drivers are listed in the dbxdrivers.ini file, and their names can be retrieved using the GetDriverNames function.

If you are using named connections, the DriverName property is automatically set when you set the ConnectionName property.

When you set DriverName, TSQLConnection automatically sets the LibraryName and VendorLib properties to the names of the libraries (DLLs or shared objects) that implement the specified driver.

Note: At design time, the DriverName property is only accessible through the virtual Driver property, which can be seen in the Object Inspector.

See Also


Code Examples