OdbcConnection.Driver Property


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

 property System::String ^ Driver { System::String ^ get(); };
public string Driver { get; }
member this.Driver : string
Public ReadOnly Property Driver As String

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.



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

Applies to

See also