다음을 통해 공유


ScriptingOptions.ConvertToSqlServerVersion Method

Definition

Overloads

ConvertToSqlServerVersion(ServerVersion)

Converts a ServerVersion into the equivalent SqlServerVersion value

ConvertToSqlServerVersion(Int32, Int32)

Converts a Major and Minor version number pair into the equivalent SqlServerVersion

ConvertToSqlServerVersion(ServerVersion)

Converts a ServerVersion into the equivalent SqlServerVersion value

public static Microsoft.SqlServer.Management.Smo.SqlServerVersion ConvertToSqlServerVersion (Microsoft.SqlServer.Management.Common.ServerVersion serverVersion);
static member ConvertToSqlServerVersion : Microsoft.SqlServer.Management.Common.ServerVersion -> Microsoft.SqlServer.Management.Smo.SqlServerVersion
Public Shared Function ConvertToSqlServerVersion (serverVersion As ServerVersion) As SqlServerVersion

Parameters

serverVersion
ServerVersion

Returns

Applies to

ConvertToSqlServerVersion(Int32, Int32)

Converts a Major and Minor version number pair into the equivalent SqlServerVersion

public static Microsoft.SqlServer.Management.Smo.SqlServerVersion ConvertToSqlServerVersion (int majorVersion, int minorVersion);
static member ConvertToSqlServerVersion : int * int -> Microsoft.SqlServer.Management.Smo.SqlServerVersion
Public Shared Function ConvertToSqlServerVersion (majorVersion As Integer, minorVersion As Integer) As SqlServerVersion

Parameters

majorVersion
Int32
minorVersion
Int32

Returns

Exceptions

If the version numbers are invalid

Applies to