Server.PingSqlServerVersion Method (String)
SQL Server 2012
Gets the version number of the instance of SQL Server.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Parameters
- serverName
- Type: System.String
A String value that specifies the name of the instance of SQL Server.
Return Value
Type: Microsoft.SqlServer.Management.Common.ServerVersionA ServerVersion object value that specifies the version of the instance of SQL Server.
