DB2 10.5 for Linux, UNIX, and Windows

DB2Connection.DataSource Property

Gets the name of the current database or the database to be used after a connection is opened.

Namespace:
IBM.Data.DB2
Assembly:
IBM.Data.DB2 (in IBM.Data.DB2.dll)

Syntax

[Visual Basic]
Public Overrides ReadOnly Property DataSource As String
[C#]
public override string DataSource { get; }
[C++]
public:
virtual property String^ DataSource {
	String^ get () override;
}
[JScript]
public override function get DataSource () : String

Property value

The name of the current database. The default value is an empty string ("") until the connection is opened.