DefaultConstraint-Klasse

The DefaultConstraint object represents a SQL Server default constraint.

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

Syntax

'Declaration
<SfcElementTypeAttribute("Default")> _
Public NotInheritable Class DefaultConstraint _
    Inherits ScriptNameObjectBase _
    Implements ICreatable, IDroppable, IRenamable, IAlterable,  _
    IExtendedProperties, IScriptable
'Usage
Dim instance As DefaultConstraint
[SfcElementTypeAttribute("Default")]
public sealed class DefaultConstraint : ScriptNameObjectBase, 
    ICreatable, IDroppable, IRenamable, IAlterable, IExtendedProperties, 
    IScriptable
[SfcElementTypeAttribute(L"Default")]
public ref class DefaultConstraint sealed : public ScriptNameObjectBase, 
    ICreatable, IDroppable, IRenamable, IAlterable, IExtendedProperties, 
    IScriptable
[<SealedAttribute>]
[<SfcElementTypeAttribute("Default")>]
type DefaultConstraint =  
    class
        inherit ScriptNameObjectBase
        interface ICreatable
        interface IDroppable
        interface IRenamable
        interface IAlterable
        interface IExtendedProperties
        interface IScriptable
    end
public final class DefaultConstraint extends ScriptNameObjectBase implements ICreatable, IDroppable, IRenamable, IAlterable, IExtendedProperties, IScriptable

Hinweise

To get DefaultConstraint object properties, users can be members of the public fixed server role.

To set DefaultConstraint object properties, users must have ALTER permission on the parent table or be a member of the db_owner fixed database role.

To create or drop a default constraint, users must have ALTER permission on the parent table or be a member of the db_owner fixed database role.

Thread Safety

Alle öffentlichen, statischen Elemente dieses Typs (Shared in Microsoft Visual Basic) sind für Vorgänge mit mehreren Threads sicher. Für Instanzelemente kann nicht sichergestellt werden, dass sie für Threads sicher sind.

Threadsicherheit

Alle öffentlichen static (Shared in Visual Basic) Member dieses Typs sind threadsicher. Bei Instanzmembern ist die Threadsicherheit nicht gewährleistet.