SqlSmoObject.GetBindDefaultScript Method

Gets the script that binds defaults specified by the defSchema and defName parameters.

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

protected string GetBindDefaultScript(
	ScriptingOptions so,
	string defSchema,
	string defName,
	bool futureOnly
)

Parameters

so
Type: Microsoft.SqlServer.Management.Smo.ScriptingOptions
A ScriptingOptions object.
defSchema
Type: System.String
A string value that specifies the default schema.
defName
Type: System.String
A string value that specifies the default name.
futureOnly
Type: System.Boolean
A Boolean value that specifies whether the binding refers only to future bindings.

Return Value

Type: System.String
A string value that contains the binding script.

Community Additions

ADD
Show: