Udostępnij przez


DefaultRuleBase.ScriptAlter Method

Alters an existing rule script.

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

Syntax

'Deklaracja
Protected Overrides Sub ScriptAlter ( _
    alterQuery As StringCollection, _
    so As ScriptingOptions _
)
protected override void ScriptAlter (
    StringCollection alterQuery,
    ScriptingOptions so
)
protected:
virtual void ScriptAlter (
    StringCollection^ alterQuery, 
    ScriptingOptions^ so
) override
protected void ScriptAlter (
    StringCollection alterQuery, 
    ScriptingOptions so
)
protected override function ScriptAlter (
    alterQuery : StringCollection, 
    so : ScriptingOptions
)

Parameters

  • so
    ScriptingOptions object contains options associated with the script.

Remarks

In SMO, rules are represented by the Rule object. The rule is defined by the TextBody property, which is a text string that contains a condition expression that uses operators or predicates, such as IN, LIKE, or BETWEEN. A rule cannot reference columns or other database objects. Built-in functions that do not reference database objects can be included.

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.