DB2 Version 10.1 for Linux, UNIX, and Windows

DB2ConnectionStringBuilder.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.

Version information

Last update
This topic was last updated for: IBM DB2 Version 10 Fix Pack 1
.NET Framework version
Supported in: 2.0, 3.0, 3.5 and 4.0
IBM Data Server Client
Supported in: IBM DB2 Version 9.7 Fix Pack 6 and later