System.Data.OleDb Namespace OleDbConnection Class
Returns a string containing the version of the of the server to which the client is connected.
Script |
[ string variable = ] OleDbConnection.ServerVersion |
variable |
Returns the version of the connected server. |
The property is read only with no default value.
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".
The following example shows the simplest way to retrieve and display the Provider property of the current connection.
"Provider: " + myConn.Provider;
"Provider: " + myConn.Provider |
|
C# |
VB |
Show me
OleDbConnection Members