Server.VersionMajor Property

 

Gets the major version of the server.

Namespace:   Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

[SfcPropertyAttribute(SfcPropertyFlags.None | SfcPropertyFlags.Expensive | SfcPropertyFlags.Standalone | SfcPropertyFlags.SqlAzureDatabase)]
public int VersionMajor { get; }

Property Value

Type: System.Int32

The major version of the server.

Return to top
Show: