SetTargetServerVersion-Methode
Sets the version of the instance of SQL Server on which the scripting operation is run.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
'Declaration
Public Sub SetTargetServerVersion ( _
ver As ServerVersion _
)
'Usage
Dim instance As ScriptingOptions
Dim ver As ServerVersion
instance.SetTargetServerVersion(ver)
public void SetTargetServerVersion(
ServerVersion ver
)
public:
void SetTargetServerVersion(
ServerVersion^ ver
)
member SetTargetServerVersion :
ver:ServerVersion -> unit
public function SetTargetServerVersion(
ver : ServerVersion
)
Parameter
- ver
Typ: Microsoft.SqlServer.Management.Common. . :: . .ServerVersion
A ServerVersion object value that specifies the version of the instance of SQL Server.