Свойство Bindings
Gets or sets a Boolean property value that specifies whether the binding statements sp_binddefault and sp_bindrule are included in the generated script. This property applies only when scripting a SQL Server table.
Пространство имен: Microsoft.SqlServer.Management.Smo
Сборка: Microsoft.SqlServer.Smo (в Microsoft.SqlServer.Smo.dll)
Синтаксис
'Декларация
Public Property Bindings As Boolean
Get
Set
'Применение
Dim instance As ScriptingOptions
Dim value As Boolean
value = instance.Bindings
instance.Bindings = value
public bool Bindings { get; set; }
public:
property bool Bindings {
bool get ();
void set (bool value);
}
member Bindings : bool with get, set
function get Bindings () : boolean
function set Bindings (value : boolean)
Значение свойства
Тип: System. . :: . .Boolean
A Boolean value that specifies whether the binding statements sp_binddefault and sp_bindrule are included in the generated Transact-SQL script.
If True, binding statements are included in the script. Otherwise, False (default).
Замечания
The Bindings property applies only when scripting a SQL Server table.
Примеры
The following code example specifies that the sp_binddefault and sp_bindrule binding statements are included in the script.
Visual Basic
Dim scOps As New ScriptingOptions()
scOps.Bindings = true
PowerShell
$scOps = New-Object Microsoft.SqlServer.Management.Smo.ScriptingOptions
$scOps.Bindings = $TRUE
См. также