共用方式為


SetTargetServerVersion 方法

Sets the version of the instance of SQL Server on which the scripting operation is run.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
Public Sub SetTargetServerVersion ( _
    ver As ServerVersion _
)
'用途
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
)

參數

範例

指令碼