ExecuteSql.GetServerVersion Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetServerVersion(Object) |
return the server version for the server with the given connection |
GetServerVersion() |
return the ServerVersion for the connection |
GetServerVersion(Object)
return the server version for the server with the given connection
public static Microsoft.SqlServer.Management.Common.ServerVersion GetServerVersion (object con);
static member GetServerVersion : obj -> Microsoft.SqlServer.Management.Common.ServerVersion
Public Shared Function GetServerVersion (con As Object) As ServerVersion
Parameters
- con
- Object
Returns
Applies to
GetServerVersion()
return the ServerVersion for the connection
public Microsoft.SqlServer.Management.Common.ServerVersion GetServerVersion ();
member this.GetServerVersion : unit -> Microsoft.SqlServer.Management.Common.ServerVersion
Public Function GetServerVersion () As ServerVersion