DB2 10.5 for Linux, UNIX, and Windows

DB2Connection.ServerMajorVersion Property

Gets an integer containing the major version number of the server to which the client is connected.

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

Syntax

[Visual Basic]
Public ReadOnly Property ServerMajorVersion As Integer
[C#]
public int ServerMajorVersion {get;}
[C++]
public: __property int get_ServerMajorVersion();
[JScript]
public function get ServerMajorVersion() : int;

Property value

Gets an integer containing the major version number of the server to which the client is connected. The default value is an empty string ("") until the connection is opened.