This topic has not yet been rated - Rate this topic

DefaultRuleBase.ScriptCreate Method

Creates a new rule script.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
protected override void ScriptCreate(
	StringCollection queries,
	ScriptingOptions so
)

Parameters

queries
Type: System.Collections.Specialized.StringCollection
StringCollection object containing the revised query.
so
Type: 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.

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.