DB2 Version 9.7 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.

Version information

Last update
This topic was last updated for: IBM DB2 Version 9.5
.NET Framework version
Supported in: 2.0 and 3.0
IBM Data Server Client
Supported in: IBM DB2 Version 9