Partager via


Membres Column

The Column object represents a SQL Server column.

Le type Column expose les membres suivants.

Constructeurs

  Nom Description
Méthode publique Column() () () () Initializes a new instance of the Column class.
Méthode publique Column(SqlSmoObject, String) Initializes a new instance of the Column class that has the specified parent and specified name.
Méthode publique Column(SqlSmoObject, String, DataType) Initializes a new instance of the Column class that has the specified parent and specified name.
Méthode publique Column(SqlSmoObject, String, DataType, Boolean) Initializes a new instance of the Column class that uses the specified parent, datayype, and optionally adding the FILESTREAM attribute.

Haut de la page

Méthodes

  Nom Description
Méthode protégée AddDatabaseContext (Hérité de SqlSmoObject.)
Méthode publique AddDefaultConstraint() () () () Adds a default constraint to the column.
Méthode publique AddDefaultConstraint(String) Adds a default constraint to the column.
Méthode publique Alter Updates any Column object property changes on the instance of SQL Server.
Méthode protégée AlterImpl (Hérité de SqlSmoObject.)
Méthode protégée AlterImplFinish (Hérité de SqlSmoObject.)
Méthode protégée AlterImplInit (Hérité de SqlSmoObject.)
Méthode protégée AlterImplWorker (Hérité de SqlSmoObject.)
Méthode protégée AppendCommaText (Hérité de ScriptNameObjectBase.)
Méthode protégée AppendWithCommaText (Hérité de ScriptNameObjectBase.)
Méthode protégée AppendWithOption (Hérité de ScriptNameObjectBase.)
Méthode publique BindDefault Binds a default to the column.
Méthode protégée BindDefaultImpl (Hérité de SqlSmoObject.)
Méthode publique BindRule Binds a rule to the column.
Méthode protégée BindRuleImpl (Hérité de SqlSmoObject.)
Méthode protégée CheckCollation (Hérité de SqlSmoObject.)
Méthode protégée CheckObjectDirty (Hérité de ScriptNameObjectBase.)
Méthode protégée CheckObjectState() () () () Validates the state of the referenced object. (Hérité de SqlSmoObject.)
Méthode protégée CheckObjectState(Boolean) Validates the state of the referenced object with the option to specify that an exception is thrown if the object is not yet created. (Hérité de SqlSmoObject.)
Méthode protégée CheckObjectStateImpl (Hérité de SqlSmoObject.)
Méthode protégée CheckTextCorectness (Hérité de ScriptNameObjectBase.)
Méthode protégée CheckTextModeSupport (Hérité de ScriptNameObjectBase.)
Méthode protégée CheckVersion100 (Hérité de SqlSmoObject.)
Méthode protégée CheckVersion80 Checks the validity of the object on SQL Server 2000. (Hérité de SqlSmoObject.)
Méthode protégée CheckVersion80SP3 Checks the validity of the object on SQL Server 2000 SP3. (Hérité de SqlSmoObject.)
Méthode protégée CheckVersion90 Check the validity of the object on SQL Server 2005. (Hérité de SqlSmoObject.)
Méthode protégée CheckVersionBelow90 (Hérité de SqlSmoObject.)
Méthode protégée CleanObject Cleans the referenced object. (Hérité de ScriptNameObjectBase.)
Méthode publique Create Creates a column on the instance of Microsoft SQL Server as defined by the Column object.
Méthode protégée CreateImpl (Hérité de SqlSmoObject.)
Méthode protégée CreateImplFinish (Hérité de SqlSmoObject.)
Méthode protégée CreateImplInit (Hérité de SqlSmoObject.)
Méthode publique Discover (Hérité de SqlSmoObject.)
Méthode publique Drop Drops the column.
Méthode protégée DropImpl (Hérité de SqlSmoObject.)
Méthode protégée DropImplWorker (Hérité de SqlSmoObject.)
Méthode publique EnumForeignKeys Enumerates a list of foreign keys that reference the column.
Méthode publique EnumIndexes Enumerates a list of indexes that include the column.
Méthode protégée EnumScriptImpl (Hérité de SqlSmoObject.)
Méthode protégée EnumScriptImplWorker (Hérité de SqlSmoObject.)
Méthode publique EnumUserPermissions Enumerates a list of permissions for a specified user.
Méthode publique Equals (Hérité de Object.)
Méthode protégée Finalize (Hérité de Object.)
Méthode protégée ForceTextModeOnTextBody Enforces text mode on the text body. (Hérité de ScriptNameObjectBase.)
Méthode protégée FormatSqlVariant (Hérité de SqlSmoObject.)
Méthode protégée GenerateDataSpaceFileStreamScript (Hérité de SqlSmoObject.)
Méthode protégée GenerateDataSpaceScript (Hérité de SqlSmoObject.)
Méthode protégée GetBindDefaultScript (Hérité de SqlSmoObject.)
Méthode protégée GetBindRuleScript (Hérité de SqlSmoObject.)
Méthode protégée GetBoolParameter(StringBuilder, ScriptingOptions, String, String, Int32%) (Hérité de SqlSmoObject.)
Méthode protégée GetBoolParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) (Hérité de SqlSmoObject.)
Méthode protégée GetBraketNameForText (Hérité de ScriptNameObjectBase.)
Méthode protégée GetDateTimeParameter (Hérité de SqlSmoObject.)
Méthode protégée GetDateTimeParameterAsInt (Hérité de SqlSmoObject.)
Méthode protégée GetDBName Gets the database name that is associated with the object. (Hérité de SqlSmoObject.)
Méthode protégée GetEnumParameter (Hérité de SqlSmoObject.)
Méthode protégée GetFragOptionString (Hérité de SqlSmoObject.)
Méthode protégée GetGuidParameter (Hérité de SqlSmoObject.)
Méthode publique GetHashCode (Hérité de Object.)
Méthode protégée GetIsTextDirty Determines whether the text value is consistent with stored value. (Hérité de ScriptNameObjectBase.)
Méthode protégée GetParameter(StringBuilder, ScriptingOptions, String, String, Int32%) (Hérité de SqlSmoObject.)
Méthode protégée GetParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) (Hérité de SqlSmoObject.)
Méthode protégée GetPropValue (Hérité de SqlSmoObject.)
Méthode protégée GetPropValueOptional (Hérité de SqlSmoObject.)
Méthode protégée GetPropValueOptionalAllowNull (Hérité de SqlSmoObject.)
Méthode protégée GetRealValue (Hérité de SqlSmoObject.)
Méthode protégée GetScriptIncludeExists (Hérité de ScriptNameObjectBase.)
Méthode protégée GetScriptingOptionsForCreate (Hérité de SqlSmoObject.)
Méthode protégée GetServerName Gets the name of the instance of SQL Server with which the object is associated. (Hérité de SqlSmoObject.)
Méthode protégée GetServerObject (Hérité de SqlSmoObject.)
Méthode protégée GetSqlServerVersionName Gets the version name of the instance of SQL Server with which the object is associated. (Hérité de SqlSmoObject.)
Méthode protégée GetStringParameter(StringBuilder, ScriptingOptions, String, String, Int32%) (Hérité de SqlSmoObject.)
Méthode protégée GetStringParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) (Hérité de SqlSmoObject.)
Méthode protégée GetTextBody() () () () Returns the text body. (Hérité de ScriptNameObjectBase.)
Méthode protégée GetTextBody(Boolean) Returns the text body. (Hérité de ScriptNameObjectBase.)
Méthode protégée GetTextForScript(ScriptingOptions, Boolean, array<String> [] () [] []) Gets the text for scripting. (Hérité de ScriptNameObjectBase.)
Méthode protégée GetTextForScript(ScriptingOptions, Boolean, array<String> [] () [] [], Boolean) (Hérité de ScriptNameObjectBase.)
Méthode protégée GetTextHeader Returns the text header. (Hérité de ScriptNameObjectBase.)
Méthode protégée GetTextMode Determines whether the script name is using text mode. (Hérité de ScriptNameObjectBase.)
Méthode protégée GetTextProperty(String) (Hérité de ScriptNameObjectBase.)
Méthode protégée GetTextProperty(String, ScriptingOptions) (Hérité de ScriptNameObjectBase.)
Méthode protégée GetTimeSpanParameterAsInt (Hérité de SqlSmoObject.)
Méthode publique GetType (Hérité de Object.)
Méthode protégée GetUrnRecursive(StringBuilder) (Hérité de SqlSmoObject.)
Méthode protégée GetUrnRecursive(StringBuilder, UrnIdOption) (Hérité de SqlSmoObject.)
Méthode protégée ImplInitialize (Hérité de SqlSmoObject.)
Méthode publique Initialize() () () () Initializes the object and forces the properties be loaded. (Hérité de SqlSmoObject.)
Méthode publique Initialize(Boolean) Initializes the object and forces the properties be loaded. (Hérité de SqlSmoObject.)
Méthode protégée IsObjectDirty Determines whether the referenced object is consistent with the stored object. (Hérité de ScriptNameObjectBase.)
Méthode protégée IsObjectInitialized Verifies whether the object has been initialized. (Hérité de SqlSmoObject.)
Méthode protégée IsObjectInSpace Verifies whether the object is isolated or connected to the instance of SQL Server. (Hérité de SqlSmoObject.)
Méthode protégée IsVersion80SP3 (Hérité de SqlSmoObject.)
Méthode protégée MarkDropped (Hérité de SqlSmoObject.)
Méthode publique MarkForDrop Marks the column to be dropped when the Alter method is run on the column's parent Table object.
Méthode protégée MarkForDropImpl (Hérité de SqlSmoObject.)
Méthode protégée MemberwiseClone (Hérité de Object.)
Méthode protégée PostAlter (Hérité de SqlSmoObject.)
Méthode protégée PostCreate (Hérité de SqlSmoObject.)
Méthode protégée PostDrop (Hérité de SqlSmoObject.)
Méthode publique Refresh Refreshes the Column object properties. (Se substitue à ScriptNameObjectBase. . :: . .Refresh() () () ().)
Méthode publique Rename Renames the column.
Méthode protégée RenameImpl This method supports the SMO infrastructure and is not intended to be used directly from your code. (Hérité de NamedSmoObject.)
Méthode protégée RenameImplWorker This method supports the SMO infrastructure and is not intended to be used directly from your code. (Hérité de NamedSmoObject.)
Méthode protégée ScriptAlter (Hérité de SqlSmoObject.)
Méthode protégée ScriptAnsiQI (Hérité de ScriptNameObjectBase.)
Méthode protégée ScriptChangeOwner This method supports the SMO infrastructure and is not intended to be used directly from your code. (Hérité de NamedSmoObject.)
Méthode protégée ScriptCreate (Hérité de SqlSmoObject.)
Méthode protégée ScriptDdl (Hérité de SqlSmoObject.)
Méthode protégée ScriptDrop (Hérité de SqlSmoObject.)
Méthode protégée ScriptImpl() () () () (Hérité de SqlSmoObject.)
Méthode protégée ScriptImpl(ScriptingOptions) (Hérité de SqlSmoObject.)
Méthode protégée ScriptImplWorker (Hérité de SqlSmoObject.)
Méthode protégée ScriptInformativeHeaders (Hérité de ScriptNameObjectBase.)
Méthode protégée ScriptRename This method supports the SMO infrastructure and is not intended to be used directly from your code. (Hérité de NamedSmoObject.)
Méthode protégée SetCollectionTextMode Sets the collection text mode. (Hérité de ScriptNameObjectBase.)
Méthode protégée SetParentImpl (Hérité de SqlSmoObject.)
Méthode protégée SetTextBody Specifies the text body. (Hérité de ScriptNameObjectBase.)
Méthode protégée SetTextHeader Specifies the text header. (Hérité de ScriptNameObjectBase.)
Méthode protégée SetTextMode Specifies the text mode. (Hérité de ScriptNameObjectBase.)
Méthode protégée SwitchTextMode Switches the text mode. (Hérité de ScriptNameObjectBase.)
Méthode protégée ThrowIfTextIsDirtyForAlter (Hérité de ScriptNameObjectBase.)
Méthode publique ToString Returns a String that represents the referenced object. (Hérité de SqlSmoObject.)
Méthode protégée TouchImpl (Hérité de SqlSmoObject.)
Méthode publique UnbindDefault Unbinds the currently bound default from the column.
Méthode protégée UnbindDefaultImpl (Hérité de SqlSmoObject.)
Méthode publique UnbindRule Unbinds the currently bound rule from the column.
Méthode protégée UnbindRuleImpl (Hérité de SqlSmoObject.)
Méthode publique UpdateStatistics() () () () Updates Statistic objects that monitor this column.
Méthode publique UpdateStatistics(StatisticsScanType) Updates Statistic objects that monitor this column.
Méthode publique UpdateStatistics(StatisticsScanType, Int32) Updates Statistic objects that monitor this column using a sampled scan.
Méthode publique UpdateStatistics(StatisticsScanType, Int32, Boolean) Updates Statistic objects that monitor this column using a sampled scan.
Méthode publique Validate (Hérité de SmoObjectBase.)

Haut de la page

Champs

  Nom Description
Champ protégé m_ExtendedProperties (Hérité de SqlSmoObject.)

Haut de la page

Propriétés

  Nom Description
Propriété publique AnsiPaddingStatus Gets or sets a Boolean property value that specifies whether the ANSI_PADDING_ENABLED column option is active.
Propriété publique Collation Gets or sets the default collation that is used by the column.
Propriété publique Computed Gets the Boolean property value that specifies whether the column is the product of computed expression
Propriété publique ComputedText Gets or sets the Transact-SQL expression that is used to generate the value of a computed column
Propriété publique DataType Gets or sets the data type that is assigned to the column.
Propriété publique Default Gets the default bound to the column.
Propriété publique DefaultConstraint Gets or sets a default value for the column.
Propriété publique DefaultSchema Gets or sets the default schema that is bound to the column.
Propriété protégée ExecuteForScalar Gets or sets the Boolean property value that specifies whether the object is set to the execute for scalar option. (Hérité de SqlSmoObject.)
Propriété publique ExtendedProperties Represents a collection of ExtendedProperty objects. Each ExtendedProperty object represents an extended property for the Column object.
Propriété publique ID Gets the column ID that uniquely identifies the column.
Propriété publique Identity Gets or sets the Boolean property value that specifies whether the column is an identity column.
Propriété publique IdentityIncrement Gets or sets the identity increment for an identity column.
Propriété publique IdentitySeed Gets or sets the identity seed for an identity column.
Propriété publique InPrimaryKey Gets the Boolean property value that specifies whether the column is included in the definition of a primary key or unique key constraint.
Propriété publique IsColumnSet Gets or sets the Boolean property value that specifies whether the column has been set.
Propriété publique IsDeterministic Gets or sets the Boolean property value that specifies whether the value of a computed column can change in subsequent invocations.
Propriété publique IsFileStream Gets a boolean value that represents the FILESTREAM attribute of the column.
Propriété publique IsForeignKey Gets the Boolean property value that specifies whether the column is a foreign key.
Propriété publique IsFullTextIndexed Gets the Boolean property value that specifies whether the column participates in a full-text index.
Propriété publique IsPersisted Gets the Boolean property value that specifies whether the computed value of the Column object is saved with the data, thus avoiding a computation each time the column is accessed.
Propriété publique IsPrecise Gets or sets the Boolean property value that specifies whether a computed column is a precise value.
Propriété publique IsSparse Gets or sets the Boolean property value that specifies whether the column value is sparse.
Propriété protégée IsTouched Gets the Boolean property value that specifies whether the object properties have been updated but not yet persisted on the server. (Hérité de SqlSmoObject.)
Propriété publique Name Gets or sets the name of the object. (Hérité de NamedSmoObject.)
Propriété publique NotForReplication Gets the Boolean property value that specifies whether the column is participating in replication.
Propriété publique Nullable Gets or sets the Boolean property value that specifies whether the column can accept null values.
Propriété protégée ObjectInSpace Gets the Boolean property value that specifies whether the object exists in isolation, or whether it is directly or indirectly connected to the instance of SQL Server. (Hérité de SqlSmoObject.)
Propriété publique Parent Gets the SqlSmoObject object that is the parent of the Column object.
Propriété publique Properties Gets a collection of Property objects that represent the object properties. (Hérité de SqlSmoObject.)
Propriété publique RowGuidCol Gets or sets the Boolean property value that specifies whether the column is automatically updated with a unique GUID value.
Propriété publique Rule Gets or sets the rule that is bound to the column.
Propriété publique RuleSchema Gets or sets the rule schema that is bound to the column.
Propriété protégée ScalarResult Gets the scalar result for the referenced object. (Hérité de SqlSmoObject.)
Propriété publique State Gets the state of the referenced object. (Hérité de SmoObjectBase.)
Propriété publique Urn Gets the Uniform Resource Name (URN) address value that uniquely identifies the object. (Hérité de SqlSmoObject.)
Propriété publique UserData Gets or sets user-defined data associated with the referenced object. (Hérité de SmoObjectBase.)

Haut de la page

Événements

  Nom Description
Événement public PropertyChanged (Hérité de SqlSmoObject.)
Événement public PropertyMetadataChanged (Hérité de SqlSmoObject.)

Haut de la page

Implémentations d'interfaces explicites

  Nom Description
Implémentation d'interface expliciteMéthode privée IAlienObjectDiscover (Hérité de SqlSmoObject.)
Implémentation d'interface expliciteMéthode privée IAlienObjectGetParent (Hérité de SqlSmoObject.)
Implémentation d'interface expliciteMéthode privée IAlienObjectGetProperty (Hérité de SqlSmoObject.)
Implémentation d'interface expliciteMéthode privée ISfcPropertyProviderGetPropertySet (Hérité de SqlSmoObject.)
Implémentation d'interface expliciteMéthode privée IAlienObjectGetUrn (Hérité de SqlSmoObject.)
Implémentation d'interface expliciteMéthode privée IAlienObjectResolve (Hérité de SqlSmoObject.)
Implémentation d'interface expliciteMéthode privée IAlienObjectSetProperty (Hérité de SqlSmoObject.)

Haut de la page