OdbcConnection.Driver Property

Definition

Gets the name of the ODBC driver specified for the current connection.

C#
[System.ComponentModel.Browsable(false)]
public string Driver { get; }
C#
public string Driver { get; }

Property Value

The name of the ODBC driver. This typically is the DLL name (for example, Sqlsrv32.dll). The default value is an empty string ("") until the connection is opened.

Attributes

Remarks

Retrieving the Driver property is equivalent to calling the ODBC function SQLGetInfo with the InfoType parameter set to SQL_DRIVER_NAME.

Applies to

Product Versions
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

See also