This topic has not yet been rated - Rate this topic

DefaultRuleBase.ScriptHeader Method

Generates a Transact-SQL script that can be used to re-create the default or rule header as specified by the script options.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
public string ScriptHeader(
	bool forAlter
)

Parameters

forAlter
Type: System.Boolean
A Boolean value that specifies whether the header can be altered.
If True, the header can be altered.
If False, the header cannot be altered.

Return Value

Type: System.String
A StringCollection system object value that contains a list of Transact-SQL command batch statements that defines the default or rule header.

Implements

ITextObject.ScriptHeader(Boolean)
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.