Freigeben über


TargetServerVersion-Eigenschaft

Gets or sets the version of the instance of SQL Server for which the generated script is intended.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Public Property TargetServerVersion As SqlServerVersion
    Get
    Set
'Usage
Dim instance As ScriptingOptions
Dim value As SqlServerVersion

value = instance.TargetServerVersion

instance.TargetServerVersion = value
public SqlServerVersion TargetServerVersion { get; set; }
public:
property SqlServerVersion TargetServerVersion {
    SqlServerVersion get ();
    void set (SqlServerVersion value);
}
member TargetServerVersion : SqlServerVersion with get, set
function get TargetServerVersion () : SqlServerVersion
function set TargetServerVersion (value : SqlServerVersion)

Eigenschaftenwert

Typ: Microsoft.SqlServer.Management.Smo. . :: . .SqlServerVersion
A SqlServerVersion object value that specifies the version of the instance of SQL Server.

Beispiele

Skripterstellung