Freigeben über


Information.VersionMajor-Eigenschaft

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)

Syntax

'Declaration
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Expensive Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase)> _
Public ReadOnly Property VersionMajor As Integer 
    Get
'Usage
Dim instance As Information 
Dim value As Integer 

value = instance.VersionMajor
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Expensive|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase)]
public int VersionMajor { get; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::Expensive|SfcPropertyFlags::Standalone|SfcPropertyFlags::SqlAzureDatabase)]
public:
property int VersionMajor {
    int get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Expensive|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase)>]
member VersionMajor : int
function get VersionMajor () : int

Eigenschaftswert

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

Beispiele

Konfigurieren von SQL Server in SMO

Siehe auch

Verweis

Information Klasse

Microsoft.SqlServer.Management.Smo-Namespace