共用方式為


ConnectionManager.ServerVersion Property

Definition

Returns the major version number of SQL Server. I.e. 8 for SQL Server 2000. Exceptions: ConnectionFailureException

public Microsoft.SqlServer.Management.Common.ServerVersion ServerVersion { get; set; }
member this.ServerVersion : Microsoft.SqlServer.Management.Common.ServerVersion with get, set
Public Property ServerVersion As ServerVersion

Property Value

Applies to