Condividi tramite


Classe DatabaseDdlTrigger

The DatabaseDdlTrigger object represents a SQL Server database data definition language (DDL) trigger.

Spazio dei nomi  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Sintassi

'Dichiarazione
<EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)> _
<PhysicalFacetAttribute(PhysicalFacetOptions.ReadOnly)> _
<SfcElementTypeAttribute("DdlTrigger")> _
Public NotInheritable Class DatabaseDdlTrigger _
    Inherits DdlTriggerBase _
    Implements IExtendedProperties, ISfcSupportsDesignMode
'Utilizzo
Dim instance As DatabaseDdlTrigger
[EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)]
[PhysicalFacetAttribute(PhysicalFacetOptions.ReadOnly)]
[SfcElementTypeAttribute("DdlTrigger")]
public sealed class DatabaseDdlTrigger : DdlTriggerBase, 
    IExtendedProperties, ISfcSupportsDesignMode
[EvaluationModeAttribute(AutomatedPolicyEvaluationMode::CheckOnSchedule)]
[PhysicalFacetAttribute(PhysicalFacetOptions::ReadOnly)]
[SfcElementTypeAttribute(L"DdlTrigger")]
public ref class DatabaseDdlTrigger sealed : public DdlTriggerBase, 
    IExtendedProperties, ISfcSupportsDesignMode
[<SealedAttribute>]
[<EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)>]
[<PhysicalFacetAttribute(PhysicalFacetOptions.ReadOnly)>]
[<SfcElementTypeAttribute("DdlTrigger")>]
type DatabaseDdlTrigger =  
    class
        inherit DdlTriggerBase
        interface IExtendedProperties
        interface ISfcSupportsDesignMode
    end
public final class DatabaseDdlTrigger extends DdlTriggerBase implements IExtendedProperties, ISfcSupportsDesignMode

Nel tipo DatabaseDdlTrigger sono esposti i membri seguenti.

Costruttori

  Nome Descrizione
Metodo pubblico DatabaseDdlTrigger() () () () Initializes a new instance of the DatabaseDdlTrigger class.
Metodo pubblico DatabaseDdlTrigger(Database, String) Initializes a new instance of the DatabaseDdlTrigger class on the specified database and with the specified name.
Metodo pubblico DatabaseDdlTrigger(Database, String, DatabaseDdlTriggerEventSet, String) Initializes a new instance of the DatabaseDdlTrigger class on the specified database with the specified name. The trigger responds to the specified event set and runs the specified batch.
Metodo pubblico DatabaseDdlTrigger(Database, String, DatabaseDdlTriggerEventSet, String, String, String) Initializes a new instance of the DatabaseDdlTrigger class on the specified database with the specified name. The trigger responds to the specified event set and runs the specified batch.

In alto

Proprietà

  Nome Descrizione
Proprietà pubblica AnsiNullsStatus Gets or sets the Boolean property value that specifies whether ISO NULL handling is enabled in the data definition language (DDL) trigger.
Proprietà pubblica AssemblyName Gets or sets the name of the assembly that contains the managed code that is executed when the data definition language (DDL) trigger is raised.
Proprietà pubblica BodyStartIndex Gets the index value that represents the start of the DDL trigger text body.
Proprietà pubblica ClassName Gets or sets the name of the class in the assembly that contains the managed code that is executed when the data definition language (DDL) trigger is raised.
Proprietà pubblica CreateDate Gets the date and time when the database data definition language (DDL) trigger was created.
Proprietà pubblica DateLastModified Gets the date and time when the database data definition language (DDL) trigger was last modified.
Proprietà pubblica DdlTriggerEvents Gets or sets the set of data definition language (DDL) events that raise the database DDL trigger.
Proprietà protetta ExecuteForScalar Ottiene o imposta il valore della proprietà Boolean che specifica se l'oggetto viene impostato su Esegui per l'opzione scalare. Ereditato da SqlSmoObject.
Proprietà pubblica ExecutionContext Gets or sets the execution context type that is used by the database DDL trigger, by itself, by the caller, or by a specified login.
Proprietà pubblica ExecutionContextUser Gets or sets the database user that is the context used when the database DDL trigger executes.
Proprietà pubblica ExtendedProperties Represents a collection of ExtendedProperty objects. Each ExtendedProperty object represents an extended property for the DatabaseDdlTrigger object.
Proprietà pubblica ID Gets the ID value that uniquely identifies the database data definition language (DDL) trigger.
Proprietà pubblica ImplementationType Gets or sets the implementation type for the database data definition language (DDL) trigger.
Proprietà pubblica IsEnabled Gets or sets the Boolean property value that specifies whether the database data definition language (DDL) trigger is enabled.
Proprietà pubblica IsEncrypted Gets or sets a Boolean property value that specifies whether the Transact-SQL batch or managed code is encrypted.
Proprietà pubblica IsSystemObject Gets the Boolean property value that specifies whether the database data definition language (DDL) trigger is a system object.
Proprietà protetta IsTouched Ottiene il valore della proprietà Boolean che specifica se le proprietà dell'oggetto sono state aggiornate ma non sono ancora persistenti nel server. Ereditato da SqlSmoObject.
Proprietà pubblica MethodName Gets or sets the name of the method that is owned by the class in the assembly, which is executed when the trigger is raised.
Proprietà pubblica Name Gets or sets a String value that specifies the name of the DDL trigger. Esegue l'override di NamedSmoObject. . :: . .Name.
Proprietà pubblica NotForReplication Gets or sets a Boolean property value that specifies whether the database data definition language (DDL) trigger is available for replication.
Proprietà protetta ObjectInSpace Ottiene il valore della proprietà Boolean che specifica se l'oggetto esiste in isolamento o se è connesso direttamente o indirettamente all'istanza di SQL Server. Ereditato da SqlSmoObject.
Proprietà pubblica Parent Gets or sets the Database object that is the parent of the DatabaseDdlTrigger object.
Proprietà pubblica Properties Ottiene una raccolta di oggetti Property che rappresentano le proprietà dell'oggetto. Ereditato da SqlSmoObject.
Proprietà pubblica QuotedIdentifierStatus Gets or sets a Boolean property value that specifies whether identifiers delimited by double quotation marks are Transact-SQL reserved keywords or contain characters not usually allowed by the Transact-SQL syntax rules.
Proprietà protetta ScalarResult Ottiene il risultato scalare per l'oggetto a cui si fa riferimento. Ereditato da SqlSmoObject.
Proprietà pubblica State Gets the state of the referenced object. Ereditato da SmoObjectBase.
Proprietà pubblica Text Gets the Transact-SQL statement that defines the database data definition language (DDL) trigger.
Proprietà pubblica TextBody Gets or sets a String value that specifies the text body that is used to define the DDL trigger. Esegue l'override di DdlTriggerBase. . :: . .TextBody.
Proprietà pubblica TextHeader Gets or sets a String value that specifies the text header that is used to define the DDL trigger. Esegue l'override di DdlTriggerBase. . :: . .TextHeader.
Proprietà pubblica TextMode Gets or sets a Boolean value that specifies whether the DDL trigger is editable as text. Esegue l'override di DdlTriggerBase. . :: . .TextMode.
Proprietà pubblica Urn Ottiene il valore dell'indirizzo URN (Uniform Resource Name) che identifica in modo univoco l'oggetto. Ereditato da SqlSmoObject.
Proprietà pubblica UserData Gets or sets user-defined data associated with the referenced object. Ereditato da SmoObjectBase.

In alto

Metodi

  Nome Descrizione
Metodo protetto AddDatabaseContext(StringCollection) Aggiungere il contesto del database alla raccolta di query identificate dal parametro queries. Ereditato da SqlSmoObject.
Metodo protetto AddDatabaseContext(StringCollection, ScriptingOptions) Aggiungere il contesto del database alla raccolta di query identificate dal parametro queries e utilizzando le opzioni di scripting specificate. Ereditato da SqlSmoObject.
Metodo protetto AddDdlTriggerEvents Adds DdlTriggerEvent()()()() objects to the trigger using the specified StringBuilder and options. Ereditato da DdlTriggerBase.
Metodo pubblico Alter Updates any DatabaseDdlTrigger object property changes on the instance of SQL Server. Ereditato da DdlTriggerBase.
Metodo protetto AlterImpl Attiva l'evento modificato dall'oggetto. Ereditato da SqlSmoObject.
Metodo protetto AlterImplFinish Metodo chiamato quando l'evento modificato dall'oggetto viene completato. Ereditato da SqlSmoObject.
Metodo protetto AlterImplInit Metodo chiamato quando l'evento modificato dall'oggetto viene inizializzato. Ereditato da SqlSmoObject.
Metodo protetto AlterImplWorker Chiama i metodi Alter. Ereditato da SqlSmoObject.
Metodo protetto AppendCommaText Appends text, optionally separated by a comma. Ereditato da ScriptNameObjectBase.
Metodo protetto AppendWithCommaText Appends text, optionally separated by a comma. Ereditato da ScriptNameObjectBase.
Metodo protetto AppendWithOption Appends text and option text separated from the main text with a “WITH” string and optionally separated by a comma. Ereditato da ScriptNameObjectBase.
Metodo protetto AutoGenerateName Generates a name based on the object Guid. Ereditato da ScriptNameObjectBase.
Metodo protetto BindDefaultImpl Associa gli elementi predefiniti identificati dai parametri. Ereditato da SqlSmoObject.
Metodo protetto BindRuleImpl Associa lo schema della regola alla regola e alle colonne identificate dai parametri. Ereditato da SqlSmoObject.
Metodo protetto CheckCollation Verifica l'ordine delle opzioni di scripting mediante il metodo delle regole di confronto identificato dal parametro collationName. Ereditato da SqlSmoObject.
Metodo protetto CheckObjectDirty Determines whether the object has been updated since the last call to the Alter method. Ereditato da DdlTriggerBase.
Metodo protetto CheckObjectState() () () () Convalida lo stato dell'oggetto a cui si fa riferimento. Ereditato da SqlSmoObject.
Metodo protetto CheckObjectState(Boolean) Convalida lo stato dell'oggetto a cui si fa riferimento con l'opzione che specifica di generare un'eccezione se l'oggetto non è stato ancora creato. Ereditato da SqlSmoObject.
Metodo protetto CheckObjectStateImpl Verifica lo stato di un oggetto SqlSmoObject. Ereditato da SqlSmoObject.
Metodo protetto CheckTextCorectness Checks text for correctness against the parameters. Ereditato da ScriptNameObjectBase.
Metodo protetto CheckTextModeSupport Checks mode of support. Ereditato da ScriptNameObjectBase.
Metodo protetto CheckVersion100 Verifica se la versione di SQL Server è SQL Server 2008. Ereditato da SqlSmoObject.
Metodo protetto CheckVersion80 Verifica la validità dell'oggetto in SQL Server 2000. Ereditato da SqlSmoObject.
Metodo protetto CheckVersion80SP3 Verifica la validità dell'oggetto in SQL Server 2000 SP3. Ereditato da SqlSmoObject.
Metodo protetto CheckVersion90 Verificare la validità dell'oggetto in SQL Server 2005. Ereditato da SqlSmoObject.
Metodo protetto CheckVersionBelow90 Verifica se la versione di SQL Server è precedente a SQL Server 2005. Ereditato da SqlSmoObject.
Metodo protetto CleanObject Cleans the referenced object. Ereditato da ScriptNameObjectBase.
Metodo pubblico Create Creates a database data definition language (DDL) trigger on the instance of SQL Server as defined by the DatabaseDdlTrigger object. Ereditato da DdlTriggerBase.
Metodo protetto CreateImpl Crea un oggetto con opzioni di scripting. Ereditato da SqlSmoObject.
Metodo protetto CreateImplFinish Metodo chiamato quando l'evento Create viene completato. Ereditato da SqlSmoObject.
Metodo protetto CreateImplInit Metodo chiamato quando l'evento Create viene inizializzato. Ereditato da SqlSmoObject.
Metodo pubblico Discover Individua un elenco di tipo Object. Ereditato da SqlSmoObject.
Metodo pubblico Drop Drops the database data definition language (DDL) trigger. Ereditato da DdlTriggerBase.
Metodo protetto DropImpl Elimina un oggetto SqlSmoObject. Ereditato da SqlSmoObject.
Metodo protetto DropImplWorker Chiama i metodi Drop. Ereditato da SqlSmoObject.
Metodo protetto EnumScriptImpl Enumera gli script specificati dal parametro so. Ereditato da SqlSmoObject.
Metodo protetto EnumScriptImplWorker Chiama i metodi che enumerano gli script specificati dal parametro so. Ereditato da SqlSmoObject.
Metodo protetto EnumScriptImplWorkerSOChanged Restituisce una stringa IEnumerable che descrive le opzioni di scripting per un oggetto. Ereditato da SqlSmoObject.
Metodo pubblico Equals Ereditato da Object.
Metodo protetto ExecuteNonQuery Ereditato da SqlSmoObject.
Metodo protetto Finalize Ereditato da Object.
Metodo protetto ForceTextModeOnTextBody Enforces text mode on the text body. Ereditato da ScriptNameObjectBase.
Metodo protetto FormatSqlVariant Formatta un oggetto come tipo SqlVariant. Ereditato da SqlSmoObject.
Metodo protetto GenerateDataSpaceFileStreamScript Genera uno script per creare file di dati. Ereditato da SqlSmoObject.
Metodo protetto GenerateDataSpaceScript Genera uno script per allocare spazio nel file di dati. Ereditato da SqlSmoObject.
Metodo protetto GetBindDefaultScript Ottiene lo script che associa le impostazioni predefinite specificate dai parametri defSchema e defName. Ereditato da SqlSmoObject.
Metodo protetto GetBindRuleScript Ottiene lo script che specifica le regole di associazione. Ereditato da SqlSmoObject.
Metodo protetto GetBoolParameter(StringBuilder, ScriptingOptions, String, String, Int32%) Assegna un parametro booleano dell'oggetto SqlSmoObject. Ereditato da SqlSmoObject.
Metodo protetto GetBoolParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) Assegna una proprietà booleana dell'oggetto SqlSmoObject. Ereditato da SqlSmoObject.
Metodo protetto GetBraketNameForText Gets the bracket name. Ereditato da ScriptNameObjectBase.
Metodo protetto GetDateTimeParameter Assegna la proprietà datetime dell'oggetto SqlSmoObject. Ereditato da SqlSmoObject.
Metodo protetto GetDateTimeParameterAsInt Assegna la proprietà datetime dell'oggetto SqlSmoObject come valore intero se la proprietà datetime è diversa da null. Ereditato da SqlSmoObject.
Metodo protetto GetDBName Ottiene il nome del database associato all'oggetto. Ereditato da SqlSmoObject.
Metodo protetto GetEnumParameter Assegna una proprietà di enumerazione dell'oggetto SqlSmoObject. Ereditato da SqlSmoObject.
Metodo protetto GetFragOptionString Ottiene un oggetto FragmentationOption come valore stringa. Ereditato da SqlSmoObject.
Metodo protetto GetGuidParameter Assegna una proprietà Guid dell'oggetto SqlSmoObject. Ereditato da SqlSmoObject.
Metodo pubblico GetHashCode Ereditato da Object.
Metodo protetto GetIsSystemNamed Gets a Boolean value that specifies whether the system is named. Ereditato da ScriptNameObjectBase.
Metodo protetto GetIsTextDirty Determines whether the text value is consistent with stored value. Ereditato da ScriptNameObjectBase.
Metodo protetto GetParameter(StringBuilder, ScriptingOptions, String, String, Int32%) Assegna un parametro dell'oggetto SqlSmoObject. Ereditato da SqlSmoObject.
Metodo protetto GetParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) Assegna un parametro dell'oggetto SqlSmoObject. Ereditato da SqlSmoObject.
Metodo protetto GetPropValue Ottiene un valore della proprietà dell'oggetto SqlSmoObject. Ereditato da SqlSmoObject.
Metodo protetto GetPropValueOptional Ottiene un valore della proprietà dell'oggetto SqlSmoObject. Ereditato da SqlSmoObject.
Metodo protetto GetPropValueOptionalAllowNull Ottiene un valore della proprietà dell'oggetto SqlSmoObject. Ereditato da SqlSmoObject.
Metodo protetto GetRealValue Ottiene un valore della proprietà dell'oggetto SqlSmoObject. Ereditato da SqlSmoObject.
Metodo protetto GetScriptIncludeExists Gets the script including the test for existence of type being scripted. Ereditato da ScriptNameObjectBase.
Metodo protetto GetScriptingOptionsForCreate Ottiene l'oggetto ScriptingOptions per l'oggetto SqlSmoObject. Ereditato da SqlSmoObject.
Metodo protetto GetServerName Ottiene il nome dell'istanza di SQL Server a cui è associato l'oggetto. Ereditato da SqlSmoObject.
Metodo protetto GetServerObject Ottiene il server dell'oggetto SqlSmoObject. Ereditato da SqlSmoObject.
Metodo protetto GetSqlServerVersionName Ottiene il nome della versione dell'istanza di SQL Server a cui è associato l'oggetto. Ereditato da SqlSmoObject.
Metodo protetto GetStringParameter(StringBuilder, ScriptingOptions, String, String, Int32%) Assegna un parametro stringa dell'oggetto SqlSmoObject. Ereditato da SqlSmoObject.
Metodo protetto GetStringParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) Assegna un parametro stringa dell'oggetto SqlSmoObject. Ereditato da SqlSmoObject.
Metodo protetto GetTextBody() () () () Returns the text body. Ereditato da ScriptNameObjectBase.
Metodo protetto GetTextBody(Boolean) Returns the text body. Ereditato da ScriptNameObjectBase.
Metodo protetto GetTextForScript(ScriptingOptions, Boolean, array<String> [] () [] []) Gets the text for scripting. Ereditato da ScriptNameObjectBase.
Metodo protetto GetTextForScript(ScriptingOptions, Boolean, array<String> [] () [] [], Boolean) Gets the text of script object. Ereditato da ScriptNameObjectBase.
Metodo protetto GetTextHeader Returns the text header. Ereditato da ScriptNameObjectBase.
Metodo protetto GetTextMode Determines whether the script name is using text mode. Ereditato da ScriptNameObjectBase.
Metodo protetto GetTextProperty(String) Gets the property as text. Ereditato da ScriptNameObjectBase.
Metodo protetto GetTextProperty(String, ScriptingOptions) Gets the property as text. Ereditato da ScriptNameObjectBase.
Metodo protetto GetTimeSpanParameterAsInt Assegna un parametro periodo di tempo dell'oggetto SqlSmoObject. Ereditato da SqlSmoObject.
Metodo pubblico GetType Ereditato da Object.
Metodo protetto GetUrnRecursive(StringBuilder) Assegna un oggetto Urn dell'oggetto SqlSmoObject. Ereditato da SqlSmoObject.
Metodo protetto GetUrnRecursive(StringBuilder, UrnIdOption) Assegna un oggetto Urn dell'oggetto SqlSmoObject. Ereditato da SqlSmoObject.
Metodo protetto ImplInitialize Inizializza i campi dell'oggetto SqlSmoObject. Ereditato da SqlSmoObject.
Metodo pubblico Initialize() () () () Inizializza l'oggetto e forza il caricamento delle proprietà. Ereditato da SqlSmoObject.
Metodo pubblico Initialize(Boolean) Inizializza l'oggetto e forza il caricamento delle proprietà. Ereditato da SqlSmoObject.
Metodo protetto IsEventSetDirty Returns a Boolean value that specifies whether the database data definition language (DDL) trigger event set has been modified but not yet persisted on the instance of Microsoft SQL Server. Ereditato da DdlTriggerBase.
Metodo protetto IsObjectDirty Determines whether the referenced object is consistent with the stored object. Ereditato da ScriptNameObjectBase.
Metodo protetto IsObjectInitialized Verifica se l'oggetto è stato inizializzato. Ereditato da SqlSmoObject.
Metodo protetto IsObjectInSpace Verifica se l'oggetto è isolato o connesso all'istanza di SQL Server. Ereditato da SqlSmoObject.
Metodo protetto IsVersion80SP3 Determina se la versione di SQL Server è SQL Server 2000 con SP3. Ereditato da SqlSmoObject.
Metodo protetto IsVersion90AndAbove Determina se la versione di SQL Server è SQL Server 2005 o successiva. Ereditato da SqlSmoObject.
Metodo protetto MarkDropped Imposta l'oggetto SqlSmoState da eliminare. Ereditato da SqlSmoObject.
Metodo protetto MarkForDropImpl Imposta l'oggetto SqlSmoState da eliminare. Ereditato da SqlSmoObject.
Metodo protetto MemberwiseClone Ereditato da Object.
Metodo protetto PostAlter Metodo attivato dopo che l'oggetto SqlSmoObject viene modificato. Ereditato da SqlSmoObject.
Metodo protetto PostCreate Metodo attivato dopo la creazione dell'oggetto SqlSmoObject. Ereditato da SqlSmoObject.
Metodo protetto PostDrop Metodo attivato dopo l'eliminazione dell'oggetto SqlSmoObject. Ereditato da SqlSmoObject.
Metodo pubblico Refresh Refreshes the script name. Ereditato da ScriptNameObjectBase.
Metodo protetto RenameImpl Identificato solo a scopo informativo. Non supportato. Non è garantita la compatibilità con le versioni future. Ereditato da NamedSmoObject.
Metodo protetto RenameImplWorker Identificato solo a scopo informativo. Non supportato. Non è garantita la compatibilità con le versioni future. Ereditato da NamedSmoObject.
Metodo pubblico Script() () () () Generates a Transact-SQL script that can be used to re-create the database data definition language (DDL) trigger. Ereditato da DdlTriggerBase.
Metodo pubblico Script(ScriptingOptions) Generates a Transact-SQL script that can be used to re-create the database data definition language (DDL) trigger as specified by the script options. Ereditato da DdlTriggerBase.
Metodo protetto ScriptAlter Runs a Transact-SQL script that updates the objects property changes on the instance of SQL Server. Ereditato da DdlTriggerBase.
Metodo protetto ScriptAnsiQI Scripts the database object in ANSI text. Ereditato da ScriptNameObjectBase.
Metodo protetto ScriptChangeOwner This method supports the SMO infrastructure and is not intended to be used directly from your code. Ereditato da NamedSmoObject.
Metodo protetto ScriptCreate Creates a new DdlTriggerBase script. Ereditato da DdlTriggerBase.
Metodo protetto ScriptDdl Genera un oggetto InvalidSmoOperationException. Ereditato da SqlSmoObject.
Metodo protetto ScriptDrop Genera un oggetto InvalidSmoOperationException. Ereditato da SqlSmoObject.
Metodo pubblico ScriptHeader Generates a Transact-SQL script that can be used to re-create the database data definition language (DDL) trigger header as specified by the script options. Ereditato da DdlTriggerBase.
Metodo protetto ScriptImpl() () () () Ottiene una raccolta di script dell'oggetto SqlSmoObject. Ereditato da SqlSmoObject.
Metodo protetto ScriptImpl(ScriptingOptions) Ottiene una raccolta di script dell'oggetto SqlSmoObject. Ereditato da SqlSmoObject.
Metodo protetto ScriptImplWorker Ottiene una raccolta di script dell'oggetto SqlSmoObject. Ereditato da SqlSmoObject.
Metodo protetto ScriptInformativeHeaders Scripts the information headers. Ereditato da ScriptNameObjectBase.
Metodo protetto ScriptOwner Alters the script owner authorization. Ereditato da NamedSmoObject.
Metodo protetto ScriptRename This method supports the SMO infrastructure and is not intended to be used directly from your code. Ereditato da NamedSmoObject.
Metodo protetto SetCollectionTextMode Sets the collection text mode. Ereditato da ScriptNameObjectBase.
Metodo protetto SetIsSystemNamed Sets a Boolean value that specifies whether the system is named. Ereditato da ScriptNameObjectBase.
Metodo protetto SetParentImpl Imposta l'elemento padre dell'oggetto SqlSmoObject sul parametro newParent. Ereditato da SqlSmoObject.
Metodo protetto SetSchemaOwned Sets the schema owned value. Ereditato da NamedSmoObject.
Metodo protetto SetTextBody Specifies the text body. Ereditato da ScriptNameObjectBase.
Metodo protetto SetTextHeader Specifies the text header. Ereditato da ScriptNameObjectBase.
Metodo protetto SetTextMode Specifies the text mode. Ereditato da ScriptNameObjectBase.
Metodo protetto SwitchTextMode Switches the text mode. Ereditato da ScriptNameObjectBase.
Metodo protetto ThrowIfTextIsDirtyForAlter Throws an exception of text has been modified and not persisted. Ereditato da ScriptNameObjectBase.
Metodo pubblico ToString Restituisce un oggetto String che rappresenta l'oggetto a cui si fa riferimento. Ereditato da SqlSmoObject.
Metodo protetto TouchImpl Non implementato. Ereditato da SqlSmoObject.
Metodo protetto UnbindDefaultImpl Annulla l'associazione delle colonne predefinite dell'oggetto SqlSmoObject. Ereditato da SqlSmoObject.
Metodo protetto UnbindRuleImpl Annulla l'associazione delle regole dell'oggetto SqlSmoObject. Ereditato da SqlSmoObject.
Metodo pubblico Validate Validates the state of an object. Ereditato da SmoObjectBase.

In alto

Eventi

  Nome Descrizione
Evento pubblico PropertyChanged Rappresenta l'evento che si verifica quando viene modificata una proprietà. Ereditato da SqlSmoObject.
Evento pubblico PropertyMetadataChanged Rappresenta l'evento che si verifica quando vengono modificati i metadati di una proprietà. Ereditato da SqlSmoObject.

In alto

Campi

  Nome Descrizione
Campo protetto m_ExtendedProperties Rappresenta una proprietà definita per estendere le proprietà fornite da un oggetto SqlSmoObject. Ereditato da SqlSmoObject.
Campo protetto singletonParent Rappresenta il padre singleton. Ereditato da SqlSmoObject.

In alto

Implementazioni esplicite dell'interfaccia

  Nome Descrizione
Implementazione esplicita dell'interfacciaMetodo privato IAlienObject. . :: . .Discover Individua eventuali dipendenze. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SqlSmoObject.
Implementazione esplicita dell'interfacciaMetodo privato IAlienObject. . :: . .GetDomainRoot Restituisce la radice del dominio. Ereditato da SqlSmoObject.
Implementazione esplicita dell'interfacciaMetodo privato IAlienObject. . :: . .GetParent Ottiene l'elemento padre di questo oggetto. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SqlSmoObject.
Implementazione esplicita dell'interfacciaMetodo privato IAlienObject. . :: . .GetPropertyType Ottiene il tipo della proprietà specificata. Ereditato da SqlSmoObject.
Implementazione esplicita dell'interfacciaMetodo privato IAlienObject. . :: . .GetPropertyValue Ottiene il valore della proprietà specificata. Ereditato da SqlSmoObject.
Implementazione esplicita dell'interfacciaMetodo privato IAlienObject. . :: . .GetUrn Ottiene l'URN (Unified Resource Name) dell'oggetto. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SqlSmoObject.
Implementazione esplicita dell'interfacciaMetodo privato IAlienObject. . :: . .Resolve Ottiene l'istanza che contiene le informazioni sull'oggetto dall'URN (Unified Resource Name) dell'oggetto. Ereditato da SqlSmoObject.
Implementazione esplicita dell'interfacciaMetodo privato IAlienObject. . :: . .SetObjectState Imposta lo stato dell'oggetto sul valore SfcObjectState specificato. Ereditato da SqlSmoObject.
Implementazione esplicita dell'interfacciaMetodo privato IAlienObject. . :: . .SetPropertyValue Imposta il valore della proprietà. Ereditato da SqlSmoObject.
Implementazione esplicita dell'interfacciaMetodo privato ISfcPropertyProvider. . :: . .GetPropertySet Ottiene il riferimento di interfaccia al set di proprietà di questo oggetto. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server. Ereditato da SqlSmoObject.
Implementazione esplicita dell'interfacciaProprietà privata ISfcSupportsDesignMode. . :: . .IsDesignMode Gets a Boolean value that specifies whether the trigger supports design mode.

In alto

Osservazioni

DDL triggers run a Transact-SQL or user-defined function in response to certain DDL events.

SMO provides programmatic access to allow management of all DDL trigger functionality with the DatabaseDdlTrigger object and the ServerDdlTrigger object.

Database DDL triggers respond to events within the scope of the database and server DDL triggers respond to events within the scope of the SQL Server instance.

To get DatabaseDdlTrigger object properties, users can be a member of the public fixed server role.

To set DatabaseDdlTrigger object properties, users must have ALTER ANY DATABASE DDL TRIGGER permission on the database.

To create a DDL trigger, users must have ALTER ANY DATABASE DDL TRIGGER permission on the database.

To drop a DDL trigger, users must have ALTER ANY DATABASE DDL TRIGGER permission on the database.

To enable or disable the DDL trigger, users must have ALTER ANY DATABASE DDL TRIGGER permission on the database.

Thread Safety

Tutti i membri statici pubblici (Shared in Microsoft Visual Basic) di questo tipo sono sicuri per le operazioni a thread multipli. Non è invece garantita la sicurezza dei membri dell'istanza.

Protezione dei thread

I membri static (Shared in Visual Basic) pubblici di questo tipo sono affidabili. Non è invece garantita la sicurezza dei membri dell'istanza.

Vedere anche

Riferimento

Altre risorse