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)

Syntax

'Declaration
Protected Function GetBindDefaultScript ( _
    so As ScriptingOptions, _
    defSchema As String, _
    defName As String, _
    futureOnly As Boolean _
) As String
'Usage
Dim so As ScriptingOptions
Dim defSchema As String
Dim defName As String
Dim futureOnly As Boolean
Dim returnValue As String

returnValue = Me.GetBindDefaultScript(so, _
    defSchema, defName, futureOnly)
protected string GetBindDefaultScript(
    ScriptingOptions so,
    string defSchema,
    string defName,
    bool futureOnly
)
protected:
String^ GetBindDefaultScript(
    ScriptingOptions^ so, 
    String^ defSchema, 
    String^ defName, 
    bool futureOnly
)
member GetBindDefaultScript : 
        so:ScriptingOptions * 
        defSchema:string * 
        defName:string * 
        futureOnly:bool -> string 
protected function GetBindDefaultScript(
    so : ScriptingOptions, 
    defSchema : String, 
    defName : String, 
    futureOnly : boolean
) : String

Parameters

  • 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.