OdbcFunctions.GetDatabaseFromDSN

Given a DSN name, returns the database name associated with that DSN. The database name is denoted by different specifiers, depending on the driver. This function currently supports "DB", "Database", "dbq", "DefaultDir", "SourceDB", "DatabaseName", "DataDirectory"

public static string GetDatabaseFromDSN(string dataSourceName)

Return Value

A database name

Parameters

dataSourceName
Name of the DSN to lookup


See also:

Class OdbcFunctions