Classe TableViewBase

The TableViewBase class is a base class that is used in the construction of the Table class and View class. It contains functionality that is common to both classes.

Hiérarchie d'héritage

System.Object
  Microsoft.SqlServer.Management.Smo.SmoObjectBase
    Microsoft.SqlServer.Management.Smo.SqlSmoObject
      Microsoft.SqlServer.Management.Smo.NamedSmoObject
        Microsoft.SqlServer.Management.Smo.ScriptNameObjectBase
          Microsoft.SqlServer.Management.Smo.ScriptSchemaObjectBase
            Microsoft.SqlServer.Management.Smo.TableViewTableTypeBase
              Microsoft.SqlServer.Management.Smo.TableViewBase
                Microsoft.SqlServer.Management.Smo.Table
                Microsoft.SqlServer.Management.Smo.View

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
Public Class TableViewBase _
    Inherits TableViewTableTypeBase _
    Implements IExtendedProperties, IScriptable
'Utilisation
Dim instance As TableViewBase
public class TableViewBase : TableViewTableTypeBase, 
    IExtendedProperties, IScriptable
public ref class TableViewBase : public TableViewTableTypeBase, 
    IExtendedProperties, IScriptable
type TableViewBase =  
    class 
        inherit TableViewTableTypeBase 
        interface IExtendedProperties 
        interface IScriptable 
    end
public class TableViewBase extends TableViewTableTypeBase implements IExtendedProperties, IScriptable

Le type TableViewBase expose les membres suivants.

Constructeurs

  Nom Description
Méthode protégée TableViewBase Initializes a new instance of the TableViewBase class.

Haut de la page

Propriétés

  Nom Description
Propriété publique Columns Gets a column collection. (hérité de TableViewTableTypeBase.)
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 Gets an extended property collection. (hérité de TableViewTableTypeBase.)
Propriété publique FullTextIndex Gets the full text index on the table or view.
Propriété publique Indexes Gets an index collection. (hérité de TableViewTableTypeBase.)
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 a String value that specifies the name of the view table type. (hérité de TableViewTableTypeBase.)
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 Properties Gets a collection of Property objects that represent the object properties. (hérité de SqlSmoObject.)
Propriété protégée ScalarResult Gets the scalar result for the referenced object. (hérité de SqlSmoObject.)
Propriété publique Schema Gets or sets a String value that specifies the name of the schema that contains the view table type. (hérité de TableViewTableTypeBase.)
Propriété publique State Gets the state of the referenced object. (hérité de SmoObjectBase.)
Propriété publique Statistics Represents a collection of Statistic objects. Each Statistic object represents a statistic counter that is defined on the table or view.
Propriété publique Triggers Represents a collection of Trigger objects. Each Trigger object represents a trigger that is defined on the table or view.
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

Méthodes

  Nom Description
Méthode protégée AddDatabaseContext Add the database context to the collection of queries identified by the queries parameter. (hérité de SqlSmoObject.)
Méthode protégée AlterImpl Activates the object altered event. (hérité de SqlSmoObject.)
Méthode protégée AlterImplWorker Calls the Alter methods. (hérité de SqlSmoObject.)
Méthode protégée AppendCommaText Appends text, optionally separated by a comma. (hérité de ScriptNameObjectBase.)
Méthode protégée AppendWithCommaText Appends text, optionally separated by a comma. (hérité de ScriptNameObjectBase.)
Méthode protégée AppendWithOption Appends text and option text separated from the main text with a “WITH” string and optionally separated by a comma. (hérité de ScriptNameObjectBase.)
Méthode protégée AutoGenerateName Generates a name based on the object Guid. (hérité de ScriptNameObjectBase.)
Méthode protégée BindDefaultImpl Binds the default items identified by the parameters. (hérité de SqlSmoObject.)
Méthode protégée BindRuleImpl Binds the rule schema to the rule and columns identified by the parameters. (hérité de SqlSmoObject.)
Méthode protégée CheckObjectDirty Checks whether object has been modified and not persisted. (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 Checks the state of a SqlSmoObject. (hérité de SqlSmoObject.)
Méthode protégée CheckTextCorectness Checks text for correctness against the parameters. (hérité de ScriptNameObjectBase.)
Méthode protégée CheckTextModeSupport Checks mode of support. (hérité de ScriptNameObjectBase.)
Méthode protégée CheckVersion100 Checks whether version of SQL Server is SQL Server 2008. (hérité de SqlSmoObject.)
Méthode protégée CheckVersion110() Checks whether version of SQL Server is SQL Server 2012. (hérité de SqlSmoObject.)
Méthode protégée CheckVersion110(String) Checks whether the version of SQL Server is SQL Server 2012 with the specified name. (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 CheckVersionBelow110 Checks whether version of SQL Server is before SQL Server 2012. (hérité de SqlSmoObject.)
Méthode protégée CheckVersionBelow90 Checks whether version of SQL Server is before SQL Server 2005. (hérité de SqlSmoObject.)
Méthode protégée CleanObject Cleans the referenced object. (hérité de ScriptNameObjectBase.)
Méthode protégée CreateImpl Creates an object with scripting options. (hérité de SqlSmoObject.)
Méthode publique Discover Discovers a list of type Object. (hérité de SqlSmoObject.)
Méthode protégée DropImpl Drops a SqlSmoObject. (hérité de SqlSmoObject.)
Méthode protégée DropImplWorker Calls the drop methods. (hérité de SqlSmoObject.)
Méthode publique EnumFragmentation() Enumerates information about fragments of data that are stored in a table or view.
Méthode publique EnumFragmentation(FragmentationOption) Enumerates information about fragments of data that are stored in a table or view with the option to specify how detailed the results should be.
Méthode publique EnumFragmentation(FragmentationOption, Int32) Enumerates information about fragments of data that are stored in a table or view on a specified partition, and with the option to specify how detailed the results should be.
Méthode publique Equals (hérité de Object.)
Méthode protégée ExecuteNonQuery Executes a batch of statements that does not return a result set. (hérité de SqlSmoObject.)
Méthode protégée ExecuteRenameQuery Executes the rename query for the object. (hérité de NamedSmoObject.)
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 Formats an object as SqlVariant type. (hérité de SqlSmoObject.)
Méthode protégée GenerateAlterEvent() Generates the alter event with the specified value. (hérité de SqlSmoObject.)
Méthode protégée GenerateAlterEvent(Urn, Object) Generates alter event with the specified URN and inner object value. (hérité de SqlSmoObject.)
Méthode protégée GetBraketNameForText Gets the bracket name for the text. (hérité de ScriptNameObjectBase.)
Méthode protégée GetContextDB Gets the context database that is associated with this object. (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 GetFragOptionString Gets a FragmentationOption object as a string value. (hérité de SqlSmoObject.)
Méthode publique GetHashCode (hérité de Object.)
Méthode protégée GetIsSystemNamed Gets a Boolean value that specifies whether the system is named. (hérité de ScriptNameObjectBase.)
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 GetPropValue Gets a property value of the SqlSmoObject object. (hérité de SqlSmoObject.)
Méthode protégée GetPropValueOptional Gets a property value of the SqlSmoObject object. (hérité de SqlSmoObject.)
Méthode protégée GetPropValueOptionalAllowNull Gets a property value of the SqlSmoObject object. (hérité de SqlSmoObject.)
Méthode protégée GetRealValue Gets a property value of the SqlSmoObject object. (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 Gets the server of the SqlSmoObject object. (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 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 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 Gets the text of the object, if not available, throw appropriate exception based on the state of the object. (hérité de ScriptNameObjectBase.)
Méthode publique GetType (hérité de Object.)
Méthode protégée GetUrnRecursive(StringBuilder) Assigns an Urn object of the SqlSmoObject object. (hérité de SqlSmoObject.)
Méthode protégée GetUrnRecursive(StringBuilder, UrnIdOption) Assigns an Urn object of the SqlSmoObject object. (hérité de SqlSmoObject.)
Méthode protégée ImplInitialize Initializes the fields of the SqlSmoObject object. (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 Determines whether the version of SQL Server is SQL Server 2000 with SP3. (hérité de SqlSmoObject.)
Méthode protégée IsVersion90AndAbove Determines whether the version of SQL Server is SQL Server 2005 or later. (hérité de SqlSmoObject.)
Méthode protégée MarkDropped Marks the state of the current object and all of its child collections to be Dropped. (hérité de TableViewTableTypeBase.)
Méthode protégée MarkForDropImpl Sets the SqlSmoState for drop operation. (hérité de SqlSmoObject.)
Méthode protégée MemberwiseClone (hérité de Object.)
Méthode protégée PostAlter The method that is activated after the SqlSmoObject is altered. (hérité de SqlSmoObject.)
Méthode protégée PostCreate The method that is activated after the SqlSmoObject is created. (hérité de SqlSmoObject.)
Méthode protégée PostDrop The method that is activated after the SqlSmoObject is dropped. (hérité de SqlSmoObject.)
Méthode publique ReCompileReferences Recompiles any view or trigger that depends on the base SMO object.
Méthode publique Refresh Refreshes the View object or Table object properties. (remplace TableViewTableTypeBase.Refresh().)
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 Identifié à titre d'information uniquement. Non pris en charge. La compatibilité future n'est pas garantie. (hérité de NamedSmoObject.)
Méthode publique Script() Generates a Transact-SQL script that can be used to re-create the database object. (hérité de TableViewTableTypeBase.)
Méthode publique Script(ScriptingOptions) Generates a Transact-SQL script that can be used to re-create the database object with the specified scripting options. (hérité de TableViewTableTypeBase.)
Méthode protégée ScriptImpl() Gets a collection of scripts of the SqlSmoObject. (hérité de SqlSmoObject.)
Méthode protégée ScriptImpl(ScriptingOptions) Gets a collection of scripts of the SqlSmoObject. (hérité de SqlSmoObject.)
Méthode protégée SetCollectionTextMode Sets the collection text mode. (hérité de ScriptNameObjectBase.)
Méthode protégée SetIsSystemNamed Sets a Boolean value that specifies whether the system is named. (hérité de ScriptNameObjectBase.)
Méthode protégée SetParentImpl Sets the parent of the SqlSmoObject to the newParent parameter. (hérité de SqlSmoObject.)
Méthode protégée SetSchemaOwned Sets the schema owned value. (hérité de NamedSmoObject.)
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 Throws an exception of text has been modified and not persisted. (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 Not implemented. (hérité de SqlSmoObject.)
Méthode protégée UnbindDefaultImpl Unbinds the default columns of the SqlSmoObject. (hérité de SqlSmoObject.)
Méthode protégée UnbindRuleImpl Unbinds rules of the SqlSmoObject. (hérité de SqlSmoObject.)
Méthode publique UpdateStatistics() Updates statistics for the table or view.
Méthode publique UpdateStatistics(StatisticsTarget, StatisticsScanType) Updates the statistics for the table or view with the option to specify the target and the type of scan performed.
Méthode publique UpdateStatistics(StatisticsTarget, StatisticsScanType, Int32) Updates the statistics for the table or view with the option to specify the target, the type of scan performed, and the sample size.
Méthode publique UpdateStatistics(StatisticsTarget, StatisticsScanType, Int32, Boolean) Updates the statistics for the table or view with the option to specify the target, the type of scan performed, the sample size, and whether to recompute the statistics.
Méthode publique Validate Validates the state of an object. (hérité de SmoObjectBase.)

Haut de la page

Événements

  Nom Description
Événement public PropertyChanged Represents the event that occurs when a property is changed. (hérité de SqlSmoObject.)
Événement public PropertyMetadataChanged Represents the event that occurs when property metadata changes. (hérité de SqlSmoObject.)

Haut de la page

Champs

  Nom Description
Champ protégé m_ExtendedProperties Represents a property that is defined to extend the properties provided by a SqlSmoObject. (hérité de SqlSmoObject.)
Champ protégé singletonParent Represents the singleton parent. (hérité de SqlSmoObject.)

Haut de la page

Implémentations d'interfaces explicites

  Nom Description
Implémentation d'interface expliciteMéthode privée IAlienObject.Discover Discovers any dependencies. Ne faites pas directement référence à ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SqlSmoObject.)
Implémentation d'interface expliciteMéthode privée IAlienObject.GetDomainRoot Returns the root of the domain. (hérité de SqlSmoObject.)
Implémentation d'interface expliciteMéthode privée IAlienObject.GetParent Gets the parent of this object. Ne faites pas directement référence à ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SqlSmoObject.)
Implémentation d'interface expliciteMéthode privée IAlienObject.GetPropertyType Gets the type of the specified property. (hérité de SqlSmoObject.)
Implémentation d'interface expliciteMéthode privée IAlienObject.GetPropertyValue Gets the value of the specified property. (hérité de SqlSmoObject.)
Implémentation d'interface expliciteMéthode privée IAlienObject.GetUrn Gets the Unified Resource Name (URN) of the object. Ne faites pas directement référence à ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SqlSmoObject.)
Implémentation d'interface expliciteMéthode privée IAlienObject.Resolve Gets the instance that contains the information about the object from the Unified Resource Name (URN) of the object. (hérité de SqlSmoObject.)
Implémentation d'interface expliciteMéthode privée IAlienObject.SetObjectState Sets the object state to the specified SfcObjectState value. (hérité de SqlSmoObject.)
Implémentation d'interface expliciteMéthode privée IAlienObject.SetPropertyValue Sets the property value. (hérité de SqlSmoObject.)
Implémentation d'interface expliciteMéthode privée ISfcPropertyProvider.GetPropertySet Gets the interface reference to the set of properties of this object. (hérité de SqlSmoObject.)

Haut de la page

Notes

The Table and View classes are derived from the TableViewBase class. The Table object represents a SQL Server table and the View object represents a SQL Server view.

Thread Safety

Tout membre statique public (Partagé dans Microsoft Visual Basic) de ce type est sûr dans le cadre des opérations à plusieurs threads. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.

Exemples

Utilisation des objets de base de données

Sécurité des threads

Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.

Voir aussi

Référence

Espace de noms Microsoft.SqlServer.Management.Smo

Autres ressources

Création, modification et suppression de tables

Tables

Vues

CREATE TABLE (Transact-SQL)

CREATE VIEW (Transact-SQL)