DB2®ConnectionStringBuilder.DBName Property

Gets or sets the value of the DBName keyword.

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

Syntax

[Visual Basic]
Public Property DBName As String
[C#]
public string DBname {get; set;}
[C++]
public: __property String* get_DBName();
public: __property void set_DBName(String*);
[JScript]
public function get DBName() : String;
public function set DBName(String);

Property value

A string that represents the database name.

Remarks

The DBName property is used only when connecting to Db2® for z/OS® and OS/390®, and only if (base) table catalog information is requested by the application.

When querying base table information about Db2 for z/OS, the DBName property can be used to reduce the size of a result set and therefore, query time. Filtering method that use the Schema, TableType or both can be used in addition to the DBName property to further reduce query time and size of the result set.

The DBName property value is used as a default database name when creating tables or table spaces.

The DBName setting is ignored on all non-Db2 for z/OS servers.

Example of using DB2ConnectionStringBuilder.DBName property:
DB2ConnectionStringBuilder connStrBldr = new DB2ConnectionStringBuilder();
connStrBldr.DBName="DSNDB01";

Data server restrictions

This property applies only to Db2 for z/OS and OS/390.