ScriptingOptions.ConvertToSqlServerVersion ScriptingOptions.ConvertToSqlServerVersion ScriptingOptions.ConvertToSqlServerVersion Method

Definition

Overloads

ConvertToSqlServerVersion(ServerVersion) ConvertToSqlServerVersion(ServerVersion)

Converts a ServerVersion into the equivalent SqlServerVersion value

ConvertToSqlServerVersion(Int32, Int32) ConvertToSqlServerVersion(Int32, Int32) ConvertToSqlServerVersion(Int32, Int32)

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

ConvertToSqlServerVersion(ServerVersion) 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

Parameters

Returns

ConvertToSqlServerVersion(Int32, Int32) ConvertToSqlServerVersion(Int32, Int32) 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 Int32 Int32
minorVersion
Int32 Int32 Int32

Returns

Exceptions

If the version numbers are invalid

Applies to