asp.net.ph

OleDbConnection.ServerVersion Property

System.Data.OleDb Namespace   OleDbConnection Class


Returns a string containing the version of the of the server to which the client is connected.

Syntax


Script [ string variable = ] OleDbConnection.ServerVersion

Property Value


variable Returns the version of the connected server.

The property is read only with no default value.

Exceptions


Exception Type Condition
InvalidOperationException Occurs when the connection is closed.

Remarks

The ServerVersion property maps to the OLE DB DBPROP_DBMSVER property. If ServerVersion is not supported by the underlying OLE DB provider, an empty string is returned.

The string representation of the version is of the form major.minor.build ( ##.##.#### ), where the first two digits are the major version, the next two digits are the minor version, and the last four digits are thr build or release version.

The provider must render the product version in this form but can also append the product-specific version — for example, "04.01.0000 Rdb 4.1".

Example

The following example shows the simplest way to retrieve and display the Provider property of the current connection.

"Provider: " + myConn.Provider;
  C# VB

 Show me 

See Also

OleDbConnection Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph