The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
OracleConnection::ServerVersion Property
.NET Framework (current version)
Gets a string containing the version of the server to which the client is connected.
Assembly: System.Data.OracleClient (in System.Data.OracleClient.dll)
public: [BrowsableAttribute(false)] property String^ ServerVersion { virtual String^ get() override; }
| Exception | Condition |
|---|---|
| InvalidOperationException | The connection is closed. |
The ServerVersion property is in Oracle version format. For example, the format for an Oracle8 release is a string in the form "8.1.7.0.0 Oracle8 Release 8.1.7.0.0 - Production."
The following example creates an OracleConnection and displays some of its read-only properties.
.NET Framework
Available since 1.1
Available since 1.1
Show: