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.

상속 계층

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

네임스페이스:  Microsoft.SqlServer.Management.Smo
어셈블리:  Microsoft.SqlServer.Smo(Microsoft.SqlServer.Smo.dll)

구문

‘선언
Public Class TableViewBase _
    Inherits TableViewTableTypeBase _
    Implements IExtendedProperties, IScriptable
‘사용 방법
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

TableViewBase 유형에서 다음 멤버를 표시합니다.

생성자

  이름 설명
보호된 메서드 TableViewBase Initializes a new instance of the TableViewBase class.

맨 위로 이동

속성

  이름 설명
공용 속성 Columns Gets a column collection. (TableViewTableTypeBase에서 상속됨)
보호된 속성 ExecuteForScalar Gets or sets the Boolean property value that specifies whether the object is set to the execute for scalar option. (SqlSmoObject에서 상속됨)
공용 속성 ExtendedProperties Gets an extended property collection. (TableViewTableTypeBase에서 상속됨)
공용 속성 FullTextIndex Gets the full text index on the table or view.
공용 속성 Indexes Gets an index collection. (TableViewTableTypeBase에서 상속됨)
보호된 속성 IsTouched Gets the Boolean property value that specifies whether the object properties have been updated but not yet persisted on the server. (SqlSmoObject에서 상속됨)
공용 속성 Name Gets or sets a String value that specifies the name of the view table type. (TableViewTableTypeBase에서 상속됨)
보호된 속성 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. (SqlSmoObject에서 상속됨)
공용 속성 Properties Gets a collection of Property objects that represent the object properties. (SqlSmoObject에서 상속됨)
보호된 속성 ScalarResult Gets the scalar result for the referenced object. (SqlSmoObject에서 상속됨)
공용 속성 Schema Gets or sets a String value that specifies the name of the schema that contains the view table type. (TableViewTableTypeBase에서 상속됨)
공용 속성 State Gets the state of the referenced object. (SmoObjectBase에서 상속됨)
공용 속성 Statistics Represents a collection of Statistic objects. Each Statistic object represents a statistic counter that is defined on the table or view.
공용 속성 Triggers Represents a collection of Trigger objects. Each Trigger object represents a trigger that is defined on the table or view.
공용 속성 Urn Gets the Uniform Resource Name (URN) address value that uniquely identifies the object. (SqlSmoObject에서 상속됨)
공용 속성 UserData Gets or sets user-defined data associated with the referenced object. (SmoObjectBase에서 상속됨)

맨 위로 이동

메서드

  이름 설명
보호된 메서드 AddDatabaseContext Add the database context to the collection of queries identified by the queries parameter. (SqlSmoObject에서 상속됨)
보호된 메서드 AlterImpl Activates the object altered event. (SqlSmoObject에서 상속됨)
보호된 메서드 AlterImplWorker Calls the Alter methods. (SqlSmoObject에서 상속됨)
보호된 메서드 AppendCommaText Appends text, optionally separated by a comma. (ScriptNameObjectBase에서 상속됨)
보호된 메서드 AppendWithCommaText Appends text, optionally separated by a comma. (ScriptNameObjectBase에서 상속됨)
보호된 메서드 AppendWithOption Appends text and option text separated from the main text with a “WITH” string and optionally separated by a comma. (ScriptNameObjectBase에서 상속됨)
보호된 메서드 AutoGenerateName Generates a name based on the object Guid. (ScriptNameObjectBase에서 상속됨)
보호된 메서드 BindDefaultImpl Binds the default items identified by the parameters. (SqlSmoObject에서 상속됨)
보호된 메서드 BindRuleImpl Binds the rule schema to the rule and columns identified by the parameters. (SqlSmoObject에서 상속됨)
보호된 메서드 CheckObjectDirty Checks whether object has been modified and not persisted. (ScriptNameObjectBase에서 상속됨)
보호된 메서드 CheckObjectState() Validates the state of the referenced object. (SqlSmoObject에서 상속됨)
보호된 메서드 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. (SqlSmoObject에서 상속됨)
보호된 메서드 CheckObjectStateImpl Checks the state of a SqlSmoObject. (SqlSmoObject에서 상속됨)
보호된 메서드 CheckTextCorectness Checks text for correctness against the parameters. (ScriptNameObjectBase에서 상속됨)
보호된 메서드 CheckTextModeSupport Checks mode of support. (ScriptNameObjectBase에서 상속됨)
보호된 메서드 CheckVersion100 Checks whether version of SQL Server is SQL Server 2008. (SqlSmoObject에서 상속됨)
보호된 메서드 CheckVersion110() Checks whether version of SQL Server is SQL Server 2012. (SqlSmoObject에서 상속됨)
보호된 메서드 CheckVersion110(String) Checks whether the version of SQL Server is SQL Server 2012 with the specified name. (SqlSmoObject에서 상속됨)
보호된 메서드 CheckVersion80 Checks the validity of the object on SQL Server 2000. (SqlSmoObject에서 상속됨)
보호된 메서드 CheckVersion80SP3 Checks the validity of the object on SQL Server 2000 SP3. (SqlSmoObject에서 상속됨)
보호된 메서드 CheckVersion90 Check the validity of the object on SQL Server 2005. (SqlSmoObject에서 상속됨)
보호된 메서드 CheckVersionBelow110 Checks whether version of SQL Server is before SQL Server 2012. (SqlSmoObject에서 상속됨)
보호된 메서드 CheckVersionBelow90 Checks whether version of SQL Server is before SQL Server 2005. (SqlSmoObject에서 상속됨)
보호된 메서드 CleanObject Cleans the referenced object. (ScriptNameObjectBase에서 상속됨)
보호된 메서드 CreateImpl Creates an object with scripting options. (SqlSmoObject에서 상속됨)
공용 메서드 Discover Discovers a list of type Object. (SqlSmoObject에서 상속됨)
보호된 메서드 DropImpl Drops a SqlSmoObject. (SqlSmoObject에서 상속됨)
보호된 메서드 DropImplWorker Calls the drop methods. (SqlSmoObject에서 상속됨)
공용 메서드 EnumFragmentation() Enumerates information about fragments of data that are stored in a table or view.
공용 메서드 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.
공용 메서드 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.
공용 메서드 Equals (Object에서 상속됨)
보호된 메서드 ExecuteNonQuery Executes a batch of statements that does not return a result set. (SqlSmoObject에서 상속됨)
보호된 메서드 ExecuteRenameQuery Executes the rename query for the object. (NamedSmoObject에서 상속됨)
보호된 메서드 Finalize (Object에서 상속됨)
보호된 메서드 ForceTextModeOnTextBody Enforces text mode on the text body. (ScriptNameObjectBase에서 상속됨)
보호된 메서드 FormatSqlVariant Formats an object as SqlVariant type. (SqlSmoObject에서 상속됨)
보호된 메서드 GenerateAlterEvent() Generates the alter event with the specified value. (SqlSmoObject에서 상속됨)
보호된 메서드 GenerateAlterEvent(Urn, Object) Generates alter event with the specified URN and inner object value. (SqlSmoObject에서 상속됨)
보호된 메서드 GetBraketNameForText Gets the bracket name for the text. (ScriptNameObjectBase에서 상속됨)
보호된 메서드 GetContextDB Gets the context database that is associated with this object. (SqlSmoObject에서 상속됨)
보호된 메서드 GetDBName Gets the database name that is associated with the object. (SqlSmoObject에서 상속됨)
보호된 메서드 GetFragOptionString Gets a FragmentationOption object as a string value. (SqlSmoObject에서 상속됨)
공용 메서드 GetHashCode (Object에서 상속됨)
보호된 메서드 GetIsSystemNamed Gets a Boolean value that specifies whether the system is named. (ScriptNameObjectBase에서 상속됨)
보호된 메서드 GetIsTextDirty Determines whether the text value is consistent with stored value. (ScriptNameObjectBase에서 상속됨)
보호된 메서드 GetPropValue Gets a property value of the SqlSmoObject object. (SqlSmoObject에서 상속됨)
보호된 메서드 GetPropValueOptional Gets a property value of the SqlSmoObject object. (SqlSmoObject에서 상속됨)
보호된 메서드 GetPropValueOptionalAllowNull Gets a property value of the SqlSmoObject object. (SqlSmoObject에서 상속됨)
보호된 메서드 GetRealValue Gets a property value of the SqlSmoObject object. (SqlSmoObject에서 상속됨)
보호된 메서드 GetServerName Gets the name of the instance of SQL Server with which the object is associated. (SqlSmoObject에서 상속됨)
보호된 메서드 GetServerObject Gets the server of the SqlSmoObject object. (SqlSmoObject에서 상속됨)
보호된 메서드 GetSqlServerVersionName Gets the version name of the instance of SQL Server with which the object is associated. (SqlSmoObject에서 상속됨)
보호된 메서드 GetTextBody() Returns the text body. (ScriptNameObjectBase에서 상속됨)
보호된 메서드 GetTextBody(Boolean) Returns the text body. (ScriptNameObjectBase에서 상속됨)
보호된 메서드 GetTextHeader Returns the text header. (ScriptNameObjectBase에서 상속됨)
보호된 메서드 GetTextMode Determines whether the script name is using text mode. (ScriptNameObjectBase에서 상속됨)
보호된 메서드 GetTextProperty Gets the text of the object, if not available, throw appropriate exception based on the state of the object. (ScriptNameObjectBase에서 상속됨)
공용 메서드 GetType (Object에서 상속됨)
보호된 메서드 GetUrnRecursive(StringBuilder) Assigns an Urn object of the SqlSmoObject object. (SqlSmoObject에서 상속됨)
보호된 메서드 GetUrnRecursive(StringBuilder, UrnIdOption) Assigns an Urn object of the SqlSmoObject object. (SqlSmoObject에서 상속됨)
보호된 메서드 ImplInitialize Initializes the fields of the SqlSmoObject object. (SqlSmoObject에서 상속됨)
공용 메서드 Initialize() Initializes the object and forces the properties be loaded. (SqlSmoObject에서 상속됨)
공용 메서드 Initialize(Boolean) Initializes the object and forces the properties be loaded. (SqlSmoObject에서 상속됨)
보호된 메서드 IsObjectDirty Determines whether the referenced object is consistent with the stored object. (ScriptNameObjectBase에서 상속됨)
보호된 메서드 IsObjectInitialized Verifies whether the object has been initialized. (SqlSmoObject에서 상속됨)
보호된 메서드 IsObjectInSpace Verifies whether the object is isolated or connected to the instance of SQL Server. (SqlSmoObject에서 상속됨)
보호된 메서드 IsVersion80SP3 Determines whether the version of SQL Server is SQL Server 2000 with SP3. (SqlSmoObject에서 상속됨)
보호된 메서드 IsVersion90AndAbove Determines whether the version of SQL Server is SQL Server 2005 or later. (SqlSmoObject에서 상속됨)
보호된 메서드 MarkDropped Marks the state of the current object and all of its child collections to be Dropped. (TableViewTableTypeBase에서 상속됨)
보호된 메서드 MarkForDropImpl Sets the SqlSmoState for drop operation. (SqlSmoObject에서 상속됨)
보호된 메서드 MemberwiseClone (Object에서 상속됨)
보호된 메서드 PostAlter The method that is activated after the SqlSmoObject is altered. (SqlSmoObject에서 상속됨)
보호된 메서드 PostCreate The method that is activated after the SqlSmoObject is created. (SqlSmoObject에서 상속됨)
보호된 메서드 PostDrop The method that is activated after the SqlSmoObject is dropped. (SqlSmoObject에서 상속됨)
공용 메서드 ReCompileReferences Recompiles any view or trigger that depends on the base SMO object.
공용 메서드 Refresh Refreshes the View object or Table object properties. (TableViewTableTypeBase.Refresh()을(를) 재정의함)
보호된 메서드 RenameImpl This method supports the SMO infrastructure and is not intended to be used directly from your code. (NamedSmoObject에서 상속됨)
보호된 메서드 RenameImplWorker 정보를 제공하기 위해서만 확인됩니다. 지원되지 않습니다. 향후 호환성은 보장되지 않습니다. (NamedSmoObject에서 상속됨)
공용 메서드 Script() Generates a Transact-SQL script that can be used to re-create the database object. (TableViewTableTypeBase에서 상속됨)
공용 메서드 Script(ScriptingOptions) Generates a Transact-SQL script that can be used to re-create the database object with the specified scripting options. (TableViewTableTypeBase에서 상속됨)
보호된 메서드 ScriptImpl() Gets a collection of scripts of the SqlSmoObject. (SqlSmoObject에서 상속됨)
보호된 메서드 ScriptImpl(ScriptingOptions) Gets a collection of scripts of the SqlSmoObject. (SqlSmoObject에서 상속됨)
보호된 메서드 SetCollectionTextMode Sets the collection text mode. (ScriptNameObjectBase에서 상속됨)
보호된 메서드 SetIsSystemNamed Sets a Boolean value that specifies whether the system is named. (ScriptNameObjectBase에서 상속됨)
보호된 메서드 SetParentImpl Sets the parent of the SqlSmoObject to the newParent parameter. (SqlSmoObject에서 상속됨)
보호된 메서드 SetSchemaOwned Sets the schema owned value. (NamedSmoObject에서 상속됨)
보호된 메서드 SetTextBody Specifies the text body. (ScriptNameObjectBase에서 상속됨)
보호된 메서드 SetTextHeader Specifies the text header. (ScriptNameObjectBase에서 상속됨)
보호된 메서드 SetTextMode Specifies the text mode. (ScriptNameObjectBase에서 상속됨)
보호된 메서드 SwitchTextMode Switches the text mode. (ScriptNameObjectBase에서 상속됨)
보호된 메서드 ThrowIfTextIsDirtyForAlter Throws an exception of text has been modified and not persisted. (ScriptNameObjectBase에서 상속됨)
공용 메서드 ToString Returns a String that represents the referenced object. (SqlSmoObject에서 상속됨)
보호된 메서드 TouchImpl Not implemented. (SqlSmoObject에서 상속됨)
보호된 메서드 UnbindDefaultImpl Unbinds the default columns of the SqlSmoObject. (SqlSmoObject에서 상속됨)
보호된 메서드 UnbindRuleImpl Unbinds rules of the SqlSmoObject. (SqlSmoObject에서 상속됨)
공용 메서드 UpdateStatistics() Updates statistics for the table or view.
공용 메서드 UpdateStatistics(StatisticsTarget, StatisticsScanType) Updates the statistics for the table or view with the option to specify the target and the type of scan performed.
공용 메서드 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.
공용 메서드 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.
공용 메서드 Validate Validates the state of an object. (SmoObjectBase에서 상속됨)

맨 위로 이동

이벤트

  이름 설명
공용 이벤트 PropertyChanged Represents the event that occurs when a property is changed. (SqlSmoObject에서 상속됨)
공용 이벤트 PropertyMetadataChanged Represents the event that occurs when property metadata changes. (SqlSmoObject에서 상속됨)

맨 위로 이동

필드

  이름 설명
보호된 필드 m_ExtendedProperties Represents a property that is defined to extend the properties provided by a SqlSmoObject. (SqlSmoObject에서 상속됨)
보호된 필드 singletonParent Represents the singleton parent. (SqlSmoObject에서 상속됨)

맨 위로 이동

명시적 인터페이스 구현

  이름 설명
명시적 인터페이스 구현전용 메서드 IAlienObject.Discover Discovers any dependencies. 코드에서 직접 이 멤버를 참조하면 안 됩니다. 이 방법은 SQL Server 인프라를 지원합니다. (SqlSmoObject에서 상속됨)
명시적 인터페이스 구현전용 메서드 IAlienObject.GetDomainRoot Returns the root of the domain. (SqlSmoObject에서 상속됨)
명시적 인터페이스 구현전용 메서드 IAlienObject.GetParent Gets the parent of this object. 코드에서 직접 이 멤버를 참조하면 안 됩니다. 이 방법은 SQL Server 인프라를 지원합니다. (SqlSmoObject에서 상속됨)
명시적 인터페이스 구현전용 메서드 IAlienObject.GetPropertyType Gets the type of the specified property. (SqlSmoObject에서 상속됨)
명시적 인터페이스 구현전용 메서드 IAlienObject.GetPropertyValue Gets the value of the specified property. (SqlSmoObject에서 상속됨)
명시적 인터페이스 구현전용 메서드 IAlienObject.GetUrn Gets the Unified Resource Name (URN) of the object. 코드에서 직접 이 멤버를 참조하면 안 됩니다. 이 방법은 SQL Server 인프라를 지원합니다. (SqlSmoObject에서 상속됨)
명시적 인터페이스 구현전용 메서드 IAlienObject.Resolve Gets the instance that contains the information about the object from the Unified Resource Name (URN) of the object. (SqlSmoObject에서 상속됨)
명시적 인터페이스 구현전용 메서드 IAlienObject.SetObjectState Sets the object state to the specified SfcObjectState value. (SqlSmoObject에서 상속됨)
명시적 인터페이스 구현전용 메서드 IAlienObject.SetPropertyValue Sets the property value. (SqlSmoObject에서 상속됨)
명시적 인터페이스 구현전용 메서드 ISfcPropertyProvider.GetPropertySet Gets the interface reference to the set of properties of this object. (SqlSmoObject에서 상속됨)

맨 위로 이동

주의

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

이 유형의 모든 public static(Microsoft Visual Basic의 경우 공유) 멤버는 다중 스레드 작업을 수행하기에 안전합니다. 인스턴스 멤버는 스레드로부터의 안전성이 보장되지 않습니다.

데이터베이스 개체 작업

스레드 보안

이 유형의 모든 공용 static(Visual Basic에서는 Shared) 멤버는 스레드로부터 안전합니다. 인스턴스 멤버는 스레드로부터의 안전성이 보장되지 않습니다.

참고 항목

참조

Microsoft.SqlServer.Management.Smo 네임스페이스

관련 자료

테이블 생성, 변경 및 제거

테이블

CREATE TABLE(Transact-SQL)

CREATE VIEW(Transact-SQL)