ScriptCreate 메서드
Creates a new rule script.
네임스페이스: Microsoft.SqlServer.Management.Smo
어셈블리: Microsoft.SqlServer.Smo(Microsoft.SqlServer.Smo.dll)
구문
‘선언
Protected Overrides Sub ScriptCreate ( _
queries As StringCollection, _
so As ScriptingOptions _
)
‘사용 방법
Dim queries As StringCollection
Dim so As ScriptingOptions
Me.ScriptCreate(queries, so)
protected override void ScriptCreate(
StringCollection queries,
ScriptingOptions so
)
protected:
virtual void ScriptCreate(
StringCollection^ queries,
ScriptingOptions^ so
) override
abstract ScriptCreate :
queries:StringCollection *
so:ScriptingOptions -> unit
override ScriptCreate :
queries:StringCollection *
so:ScriptingOptions -> unit
protected override function ScriptCreate(
queries : StringCollection,
so : ScriptingOptions
)
매개 변수
- queries
유형: System.Collections.Specialized. . :: . .StringCollection
StringCollection object containing the revised query.
- so
유형: Microsoft.SqlServer.Management.Smo. . :: . .ScriptingOptions
ScriptingOptionsobject contains options associated with the script.
주의
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.