OdbcDsnInfo OdbcTarget Method CleanCode C# Libraries v1.2.03 API
Gets the ODBC target for the specified DSN name.

Namespace: CleanCode.Data
Assembly: CleanCode (in CleanCode.dll) Version: 1.2.3.0 (1.2.03)
Syntax

public static string OdbcTarget(
	string dsnName
)

Return Value

The ODBC target directory or file for the specified DSN name.
Remarks

For a CSV connection, this will be the default directory (DefaultDir registry key). Any file in that directory may be specified as a target of a select statement. For an Excel connection, this will be the specific Excel file, if specified in the ODBC connection (DBQ registry key). Any worksheet in that file may be specified as a target of a select statement.
See Also