Information.VersionMajor Property

 

Gets the major version number of the instance of SQL 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

An Int32 object that specifies the major version number of the instance of SQL Server.

Return to top
Show: