View-Klasse

The View object represents a SQL Server view. 

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

Syntax

'Declaration
<PhysicalFacetAttribute(PhysicalFacetOptions.ReadOnly)> _
<EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)> _
Public NotInheritable Class View _
    Inherits TableViewBase _
    Implements ISfcSupportsDesignMode, IColumnPermission, IObjectPermission, ICreatable,  _
    IAlterable, IDroppable, IRenamable, IExtendedProperties, ITextObject,  _
    IViewOptions, IDmfFacet
'Usage
Dim instance As View
[PhysicalFacetAttribute(PhysicalFacetOptions.ReadOnly)]
[EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)]
public sealed class View : TableViewBase, ISfcSupportsDesignMode, 
    IColumnPermission, IObjectPermission, ICreatable, IAlterable, IDroppable, 
    IRenamable, IExtendedProperties, ITextObject, IViewOptions, IDmfFacet
[PhysicalFacetAttribute(PhysicalFacetOptions::ReadOnly)]
[EvaluationModeAttribute(AutomatedPolicyEvaluationMode::CheckOnSchedule)]
public ref class View sealed : public TableViewBase, 
    ISfcSupportsDesignMode, IColumnPermission, IObjectPermission, ICreatable, IAlterable, 
    IDroppable, IRenamable, IExtendedProperties, ITextObject, IViewOptions, 
    IDmfFacet
[<SealedAttribute>]
[<PhysicalFacetAttribute(PhysicalFacetOptions.ReadOnly)>]
[<EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)>]
type View =  
    class
        inherit TableViewBase
        interface ISfcSupportsDesignMode
        interface IColumnPermission
        interface IObjectPermission
        interface ICreatable
        interface IAlterable
        interface IDroppable
        interface IRenamable
        interface IExtendedProperties
        interface ITextObject
        interface IViewOptions
        interface IDmfFacet
    end
public final class View extends TableViewBase implements ISfcSupportsDesignMode, IColumnPermission, IObjectPermission, ICreatable, IAlterable, IDroppable, IRenamable, IExtendedProperties, ITextObject, IViewOptions, IDmfFacet

Der View-Typ macht folgende Elemente verfügbar.

Konstruktoren

  Name Beschreibung
Öffentliche Methode View() () () () Initializes a new instance of the View object.
Öffentliche Methode View(Database, String) Initializes a new instance of the View object on the specified database and with the specified name.
Öffentliche Methode View(Database, String, String) Initializes a new instance of the View object on the specified database and with the specified name and schema.

Zum Anfang

Eigenschaften

  Name Beschreibung
Öffentliche Eigenschaft AnsiNullsStatus Gets the Boolean property value that specifies whether ISO NULL handling is enabled on the view.
Öffentliche Eigenschaft Columns Ruft eine Spaltenauflistung ab. (Geerbt von TableViewTableTypeBase.)
Öffentliche Eigenschaft CreateDate Gets the time and date when the view was created.
Öffentliche Eigenschaft DateLastModified Gets the time and date when the view was last modified.
Öffentliche Eigenschaft Events Gets the events associated with the view.
Geschützte Eigenschaft ExecuteForScalar Ruft den Boolean-Eigenschaftswert ab, der angibt, ob das Objekt auf die ExecuteForScalar-Option festgelegt ist, oder legt ihn fest. (Geerbt von SqlSmoObject.)
Öffentliche Eigenschaft ExtendedProperties Ruft eine Auflistung erweiterter Eigenschaften ab. (Geerbt von TableViewTableTypeBase.)
Öffentliche Eigenschaft FullTextIndex Gets the full text index on the table or view. (Geerbt von TableViewBase.)
Öffentliche Eigenschaft HasAfterTrigger Gets the Boolean property value that specifies whether the view has any after triggers.
Öffentliche Eigenschaft HasColumnSpecification Gets the Boolean property that specifies whether the view has a column specification.
Öffentliche Eigenschaft HasDeleteTrigger Gets the Boolean property value that specifies whether the view has a delete trigger.
Öffentliche Eigenschaft HasIndex Gets the Boolean property value that specifies whether the view has at least one index.
Öffentliche Eigenschaft HasInsertTrigger Gets the Boolean property value that specifies whether the view has an insert trigger.
Öffentliche Eigenschaft HasInsteadOfTrigger Gets the Boolean property value that specifies whether the view has any instead of triggers.
Öffentliche Eigenschaft HasUpdateTrigger Gets the Boolean property value that specifies whether the view has at least one update trigger.
Öffentliche Eigenschaft ID Gets the ID value that uniquely identifies the view.
Öffentliche Eigenschaft Indexes Gets the IndexCollection object. (Überschreibt TableViewTableTypeBase. . :: . .Indexes.)
Öffentliche Eigenschaft IsEncrypted Gets or sets the Boolean property that specifies whether the view is encrypted.
Öffentliche Eigenschaft IsIndexable Gets the Boolean property that specifies whether it is possible to place an index on the view.
Öffentliche Eigenschaft IsSchemaBound Gets or sets the Boolean property that specifies whether a schema is bound to the view.
Öffentliche Eigenschaft IsSchemaOwned Gets a Boolean value that indicates whether the View object is owned by a schema.
Öffentliche Eigenschaft IsSystemObject Gets the Boolean property value that specifies whether the view is a system object.
Geschützte Eigenschaft IsTouched Ruft den Boolean-Eigenschaftswert ab, der angibt, ob die Objekteigenschaften aktualisiert, aber noch nicht permanent auf dem Server gespeichert wurden. (Geerbt von SqlSmoObject.)
Öffentliche Eigenschaft Name Ruft einen String-Wert ab, der den Namen des Sichttabellentyps angibt, oder legt ihn fest. (Geerbt von TableViewTableTypeBase.)
Geschützte Eigenschaft ObjectInSpace Ruft den Boolean-Eigenschaftswert ab, der angibt, ob das Objekt isoliert vorhanden bzw. direkt oder indirekt mit der SQL Server-Instanz verbunden ist. (Geerbt von SqlSmoObject.)
Öffentliche Eigenschaft Owner Gets the name of the owner of the UserDefinedType object.
Öffentliche Eigenschaft Parent Gets the Database object that is the parent of the View object.
Öffentliche Eigenschaft Properties Ruft eine Auflistung von Property-Objekten ab, die die Objekteigenschaften darstellen. (Geerbt von SqlSmoObject.)
Öffentliche Eigenschaft 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.
Öffentliche Eigenschaft ReturnsViewMetadata Gets or sets a Boolean property value that specifies whether the view returns metadata.
Geschützte Eigenschaft ScalarResult Ruft das skalare Ergebnis für das Objekt ab, auf das verwiesen wird. (Geerbt von SqlSmoObject.)
Öffentliche Eigenschaft Schema Ruft einen String-Wert ab, der den Namen des Schemas mit dem Sichttabellentyp angibt, oder legt ihn fest. (Geerbt von TableViewTableTypeBase.)
Öffentliche Eigenschaft State Gets the state of the referenced object. (Geerbt von SmoObjectBase.)
Öffentliche Eigenschaft Statistics Represents a collection of Statistic objects. Each Statistic object represents a statistic counter that is defined on the table or view. (Geerbt von TableViewBase.)
Öffentliche Eigenschaft TextBody Gets or sets the Transact-SQL string that defines the view.
Öffentliche Eigenschaft TextHeader Gets or sets the header part of the Transact-SQL string that defines the view.
Öffentliche Eigenschaft TextMode Gets or sets the Boolean property that specifies whether the text header is editable as text.
Öffentliche Eigenschaft Triggers Represents a collection of Trigger objects. Each Trigger object represents a trigger that is defined on the table or view. (Geerbt von TableViewBase.)
Öffentliche Eigenschaft Urn Ruft den Wert der URN (Uniform Resource Name)-Adresse ab, durch den das Objekt eindeutig identifiziert wird. (Geerbt von SqlSmoObject.)
Öffentliche Eigenschaft UserData Gets or sets user-defined data associated with the referenced object. (Geerbt von SmoObjectBase.)

Zum Anfang

Methoden

  Name Beschreibung
Geschützte Methode AddDatabaseContext(StringCollection) Fügt der Auflistung der vom queries-Parameter identifizierten Abfragen den Datenbankkontext hinzu. (Geerbt von SqlSmoObject.)
Geschützte Methode AddDatabaseContext(StringCollection, ScriptingOptions) Fügt der Auflistung der vom queries-Parameter identifizierten Abfragen den Datenbankkontext gemäß den angegebenen Skriptoptionen hinzu. (Geerbt von SqlSmoObject.)
Öffentliche Methode Alter Updates any View object property changes on the instance of Microsoft SQL Server. 
Geschützte Methode AlterImpl Aktiviert das Änderungsereignis des Objekts. (Geerbt von SqlSmoObject.)
Geschützte Methode AlterImplFinish Die Methode, die nach Beendigung des Änderungsereignisses des Objekts aufgerufen wird. (Geerbt von SqlSmoObject.)
Geschützte Methode AlterImplInit Die Methode, die bei der Initialisierung des Änderungsereignisses des Objekts aufgerufen wird. (Geerbt von SqlSmoObject.)
Geschützte Methode AlterImplWorker Ruft die ALTER-Methoden auf. (Geerbt von SqlSmoObject.)
Geschützte Methode AppendCommaText Appends text, optionally separated by a comma. (Geerbt von ScriptNameObjectBase.)
Geschützte Methode AppendWithCommaText Appends text, optionally separated by a comma. (Geerbt von ScriptNameObjectBase.)
Geschützte Methode AppendWithOption Appends text and option text separated from the main text with a “WITH” string and optionally separated by a comma. (Geerbt von ScriptNameObjectBase.)
Geschützte Methode AutoGenerateName Generates a name based on the object Guid. (Geerbt von ScriptNameObjectBase.)
Geschützte Methode BindDefaultImpl Bindet die von den Parametern identifizierten Standardelemente. (Geerbt von SqlSmoObject.)
Geschützte Methode BindRuleImpl Bindet das Regelschema an die Regel und die Spalten, die von den Parametern identifiziert werden. (Geerbt von SqlSmoObject.)
Öffentliche Methode ChangeSchema Changes the schema for the view.
Geschützte Methode CheckCollation Überprüft die Reihenfolge der Skriptoptionen anhand der vom collationName-Parameter identifizierten Sortierungsmethode. (Geerbt von SqlSmoObject.)
Geschützte Methode CheckObjectDirty Checks whether object has been modified and not persisted. (Geerbt von ScriptNameObjectBase.)
Geschützte Methode CheckObjectState() () () () Überprüft den Status des Objekts, auf das verwiesen wird. (Geerbt von SqlSmoObject.)
Geschützte Methode CheckObjectState(Boolean) Überprüft den Status des Objekts, auf das verwiesen wird. Optional kann angegeben werden, dass eine Ausnahme ausgelöst wird, wenn das Objekt noch nicht erstellt wurde. (Geerbt von SqlSmoObject.)
Geschützte Methode CheckObjectStateImpl Überprüft den Zustand von SqlSmoObject. (Geerbt von SqlSmoObject.)
Geschützte Methode CheckTextCorectness Checks text for correctness against the parameters. (Geerbt von ScriptNameObjectBase.)
Geschützte Methode CheckTextModeSupport Checks mode of support. (Geerbt von ScriptNameObjectBase.)
Geschützte Methode CheckVersion100 Überprüft, ob die SQL Server-Version SQL Server 2008 ist. (Geerbt von SqlSmoObject.)
Geschützte Methode CheckVersion80 Überprüft die Gültigkeit des Objekts für SQL Server 2000. (Geerbt von SqlSmoObject.)
Geschützte Methode CheckVersion80SP3 Überprüft die Gültigkeit des Objekts für SQL Server 2000 SP3. (Geerbt von SqlSmoObject.)
Geschützte Methode CheckVersion90 Überprüft die Gültigkeit des Objekts für SQL Server 2005. (Geerbt von SqlSmoObject.)
Geschützte Methode CheckVersionBelow90 Überprüft, ob die SQL Server-Version älter als SQL Server 2005 ist. (Geerbt von SqlSmoObject.)
Geschützte Methode CleanObject Cleans the referenced object. (Geerbt von ScriptNameObjectBase.)
Öffentliche Methode Create Creates a view on the instance of SQL Server as defined by the View object.
Geschützte Methode CreateImpl Erstellt ein Objekt mit Skriptoptionen. (Geerbt von SqlSmoObject.)
Geschützte Methode CreateImplFinish Die Methode, die nach Beendigung des CREATE-Ereignisses aufgerufen wird. (Geerbt von SqlSmoObject.)
Geschützte Methode CreateImplInit Die Methode, die bei Initialisierung des CREATE-Ereignisses aufgerufen wird. (Geerbt von SqlSmoObject.)
Öffentliche Methode Deny(ObjectPermissionSet, String) Denies the specified set of permissions for the specified grantee on the view.
Öffentliche Methode Deny(ObjectPermissionSet, array<String> [] () [] []) Denies the specified set of permissions for the specified grantees on the view.
Öffentliche Methode Deny(ObjectPermissionSet, String, Boolean) Denies the specified set of permissions for the specified grantee and other users that the grantee granted the specified set of permissions on the view.
Öffentliche Methode Deny(ObjectPermissionSet, String, array<String> [] () [] []) Denies the specified set of permissions to the grantee on the specified columns on the view.
Öffentliche Methode Deny(ObjectPermissionSet, array<String> [] () [] [], Boolean) Denies the specified permission for the specified grantees on the view.
Öffentliche Methode Deny(ObjectPermissionSet, array<String> [] () [] [], array<String> [] () [] []) Denies the specified set of permissions for the grantees on the specified columns on the view.
Öffentliche Methode Deny(ObjectPermissionSet, String, array<String> [] () [] [], Boolean) Denies the specified set of permissions for the specified grantee and other users that the grantee granted the specified set of permissions on the specified columns on the view.
Öffentliche Methode Deny(ObjectPermissionSet, array<String> [] () [] [], array<String> [] () [] [], Boolean) Denies the specified set of permissions for the specified grantees and other users that the grantee granted the specified set of permissions on the specified columns on the view.
Öffentliche Methode Discover Ermittelt eine Liste vom Typ Object. (Geerbt von SqlSmoObject.)
Öffentliche Methode Drop Removes the view from the database.
Geschützte Methode DropImpl Löscht SqlSmoObject. (Geerbt von SqlSmoObject.)
Geschützte Methode DropImplWorker Ruft die DROP-Methoden auf. (Geerbt von SqlSmoObject.)
Öffentliche Methode EnumColumnPermissions() () () () Enumerates a list of column permissions for the view.
Öffentliche Methode EnumColumnPermissions(String) Enumerates a list of column permissions for a specified grantee on the view.
Öffentliche Methode EnumColumnPermissions(ObjectPermissionSet) Enumerates a list of column permissions for a specified permission on the view.
Öffentliche Methode EnumColumnPermissions(String, ObjectPermissionSet) Enumerates a list of column permissions for a specified grantee and a specified permission on the view.
Öffentliche Methode EnumColumns Enumerates a list of columns defined in the view.
Öffentliche Methode EnumFragmentation() () () () Enumerates information about fragments of data that are stored in a table or view. (Geerbt von TableViewBase.)
Öffentliche Methode 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. (Geerbt von TableViewBase.)
Öffentliche Methode 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. (Geerbt von TableViewBase.)
Öffentliche Methode EnumObjectPermissions() () () () Enumerates a list of object permissions for the view.
Öffentliche Methode EnumObjectPermissions(String) Enumerates a list of object permissions for a specified grantee on the view.
Öffentliche Methode EnumObjectPermissions(ObjectPermissionSet) Enumerates a list of object permissions for a specified permission on the view.
Öffentliche Methode EnumObjectPermissions(String, ObjectPermissionSet) Enumerates a list of object permissions for a specified grantee and a specified permission on the view.
Geschützte Methode EnumScriptImpl Listet die vom so-Parameter angegebenen Skripts auf. (Geerbt von SqlSmoObject.)
Geschützte Methode EnumScriptImplWorker Ruft die Methoden auf, die die vom so-Parameter angegebenen Skripts auflisten. (Geerbt von SqlSmoObject.)
Geschützte Methode EnumScriptImplWorkerSOChanged Gibt eine IEnumerable-Zeichenfolge zurück, die die Skriptoptionen für ein Objekt beschreibt. (Geerbt von SqlSmoObject.)
Öffentliche Methode Equals (Geerbt von Object.)
Geschützte Methode ExecuteNonQuery (Geerbt von SqlSmoObject.)
Geschützte Methode Finalize (Geerbt von Object.)
Geschützte Methode ForceTextModeOnTextBody Enforces text mode on the text body. (Geerbt von ScriptNameObjectBase.)
Geschützte Methode FormatSqlVariant Formatiert ein Objekt als SqlVariant-Typ. (Geerbt von SqlSmoObject.)
Geschützte Methode GenerateDataSpaceFileStreamScript Generiert ein Skript zum Erstellen der Datendatei. (Geerbt von SqlSmoObject.)
Geschützte Methode GenerateDataSpaceScript Generiert ein Skript zum Zuordnen von Speicherplatz in der Datendatei. (Geerbt von SqlSmoObject.)
Geschützte Methode GetBindDefaultScript Ruft das Skript ab, durch das die vom defSchema-Parameter und defName-Parameter angegebenen Standardwerte gebunden werden. (Geerbt von SqlSmoObject.)
Geschützte Methode GetBindRuleScript Ruft das Skript ab, das die Bindungsregeln angibt. (Geerbt von SqlSmoObject.)
Geschützte Methode GetBoolParameter(StringBuilder, ScriptingOptions, String, String, Int32%) Weist einen booleschen Parameter von SqlSmoObject zu. (Geerbt von SqlSmoObject.)
Geschützte Methode GetBoolParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) Weist eine boolesche Eigenschaft von SqlSmoObject zu. (Geerbt von SqlSmoObject.)
Geschützte Methode GetBraketNameForText Gets the bracket name. (Geerbt von ScriptNameObjectBase.)
Geschützte Methode GetDateTimeParameter Weist die datetime-Eigenschaft von SqlSmoObject zu. (Geerbt von SqlSmoObject.)
Geschützte Methode GetDateTimeParameterAsInt Weist die datetime-Eigenschaft von SqlSmoObject als ganzzahligen Wert zu, wenn die datetime-Eigenschaft nicht NULL ist. (Geerbt von SqlSmoObject.)
Geschützte Methode GetDBName Ruft den Datenbanknamen ab, der dem Objekt zugeordnet ist. (Geerbt von SqlSmoObject.)
Geschützte Methode GetEnumParameter Weist die Enumerationseigenschaft von SqlSmoObject zu. (Geerbt von SqlSmoObject.)
Geschützte Methode GetFragOptionString Ruft ein FragmentationOption-Objekt als Zeichenfolgenwert ab. (Geerbt von SqlSmoObject.)
Geschützte Methode GetGuidParameter Weist eine Guid-Eigenschaft von SqlSmoObject zu. (Geerbt von SqlSmoObject.)
Öffentliche Methode GetHashCode (Geerbt von Object.)
Geschützte Methode GetIsSystemNamed Gets a Boolean value that specifies whether the system is named. (Geerbt von ScriptNameObjectBase.)
Geschützte Methode GetIsTextDirty Determines whether the text value is consistent with stored value. (Geerbt von ScriptNameObjectBase.)
Geschützte Methode GetParameter(StringBuilder, ScriptingOptions, String, String, Int32%) Weist einen Parameter von SqlSmoObject zu. (Geerbt von SqlSmoObject.)
Geschützte Methode GetParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) Weist einen Parameter von SqlSmoObject zu. (Geerbt von SqlSmoObject.)
Geschützte Methode GetPropValue Ruft einen Eigenschaftswert des SqlSmoObject-Objekts ab. (Geerbt von SqlSmoObject.)
Geschützte Methode GetPropValueOptional Ruft einen Eigenschaftswert des SqlSmoObject-Objekts ab. (Geerbt von SqlSmoObject.)
Geschützte Methode GetPropValueOptionalAllowNull Ruft einen Eigenschaftswert des SqlSmoObject-Objekts ab. (Geerbt von SqlSmoObject.)
Geschützte Methode GetRealValue Ruft einen Eigenschaftswert des SqlSmoObject-Objekts ab. (Geerbt von SqlSmoObject.)
Geschützte Methode GetScriptIncludeExists Gets the script including the test for existence of type being scripted. (Geerbt von ScriptNameObjectBase.)
Geschützte Methode GetScriptingOptionsForCreate Ruft ScriptingOptions für das SqlSmoObject-Objekt ab. (Geerbt von SqlSmoObject.)
Geschützte Methode GetServerName Ruft den Namen der SQL Server-Instanz ab, der das Objekt zugeordnet ist. (Geerbt von SqlSmoObject.)
Geschützte Methode GetServerObject Ruft den Server des SqlSmoObject-Objekts ab. (Geerbt von SqlSmoObject.)
Geschützte Methode GetSqlServerVersionName Ruft den Versionsnamen der SQL Server-Instanz ab, der das Objekt zugeordnet ist. (Geerbt von SqlSmoObject.)
Geschützte Methode GetStringParameter(StringBuilder, ScriptingOptions, String, String, Int32%) Weist einen Zeichenfolgenparameter des SqlSmoObject-Objekts zu. (Geerbt von SqlSmoObject.)
Geschützte Methode GetStringParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) Weist einen Zeichenfolgenparameter des SqlSmoObject-Objekts zu. (Geerbt von SqlSmoObject.)
Geschützte Methode GetTextBody() () () () Returns the text body. (Geerbt von ScriptNameObjectBase.)
Geschützte Methode GetTextBody(Boolean) Returns the text body. (Geerbt von ScriptNameObjectBase.)
Geschützte Methode GetTextForScript(ScriptingOptions, Boolean, array<String> [] () [] []) Gets the text for scripting. (Geerbt von ScriptNameObjectBase.)
Geschützte Methode GetTextForScript(ScriptingOptions, Boolean, array<String> [] () [] [], Boolean) Gets the text of script object. (Geerbt von ScriptNameObjectBase.)
Geschützte Methode GetTextHeader Returns the text header. (Geerbt von ScriptNameObjectBase.)
Geschützte Methode GetTextMode Determines whether the script name is using text mode. (Geerbt von ScriptNameObjectBase.)
Geschützte Methode GetTextProperty(String) Gets the property as text. (Geerbt von ScriptNameObjectBase.)
Geschützte Methode GetTextProperty(String, ScriptingOptions) Gets the property as text. (Geerbt von ScriptNameObjectBase.)
Geschützte Methode GetTimeSpanParameterAsInt Weist einen Zeitraumparameter des SqlSmoObject-Objekts zu. (Geerbt von SqlSmoObject.)
Öffentliche Methode GetType (Geerbt von Object.)
Geschützte Methode GetUrnRecursive(StringBuilder) Weist ein Urn-Objekt des SqlSmoObject-Objekts zu. (Geerbt von SqlSmoObject.)
Geschützte Methode GetUrnRecursive(StringBuilder, UrnIdOption) Weist ein Urn-Objekt des SqlSmoObject-Objekts zu. (Geerbt von SqlSmoObject.)
Öffentliche Methode Grant(ObjectPermissionSet, String) Grants the specified set of permissions to the specified grantee on the view.
Öffentliche Methode Grant(ObjectPermissionSet, array<String> [] () [] []) Grants the specified set of permissions to the specified grantees on the view.
Öffentliche Methode Grant(ObjectPermissionSet, String, Boolean) Grants access to the specified permission and the ability to grant access to other uses for the specified grantee on the view.
Öffentliche Methode Grant(ObjectPermissionSet, String, array<String> [] () [] []) Grants access to the specified permission on the specified columns for the specified grantee on the specified columns on the view.
Öffentliche Methode Grant(ObjectPermissionSet, array<String> [] () [] [], Boolean) Grants access to the specified permission and the ability to grant access to other uses for the specified grantees on the view.
Öffentliche Methode Grant(ObjectPermissionSet, array<String> [] () [] [], array<String> [] () [] []) Grants the specified set of permissions to the grantees to the specified columns on the view.
Öffentliche Methode Grant(ObjectPermissionSet, String, Boolean, String) Grants the specified set of permissions to the grantee and the ability to grant the set of permissions to other users on the view under an assumed role.
Öffentliche Methode Grant(ObjectPermissionSet, String, array<String> [] () [] [], Boolean) Grants the specified permission to the grantee and the ability to grant the specified set of permissions to other users on the specified columns on the view.
Öffentliche Methode Grant(ObjectPermissionSet, array<String> [] () [] [], Boolean, String) Grants the specified set of permissions to the grantees and the ability to grant the set of permissions to other users on the view under an assumed role.
Öffentliche Methode Grant(ObjectPermissionSet, array<String> [] () [] [], array<String> [] () [] [], Boolean) Grants the specified set of permissions to the grantees and the ability to grant the set of permissions to other users on the specified columns on the view.
Öffentliche Methode Grant(ObjectPermissionSet, String, array<String> [] () [] [], Boolean, String) Grants the specified set of permissions to the grantee and the ability to grant the set of permissions to other users on the specified columns on the view under an assumed role.
Öffentliche Methode Grant(ObjectPermissionSet, array<String> [] () [] [], array<String> [] () [] [], Boolean, String) Grants the specified set of permissions to the grantees and the ability to grant the set of permissions to other users on the specified columns on the view under an assumed role.
Geschützte Methode ImplInitialize Initialisiert die Felder des SqlSmoObject-Objekts. (Geerbt von SqlSmoObject.)
Öffentliche Methode Initialize() () () () Initialisiert das Objekt und erzwingt das Laden der Eigenschaften. (Geerbt von SqlSmoObject.)
Öffentliche Methode Initialize(Boolean) Initialisiert das Objekt und erzwingt das Laden der Eigenschaften. (Geerbt von SqlSmoObject.)
Geschützte Methode IsObjectDirty Determines whether the referenced object is consistent with the stored object. (Geerbt von ScriptNameObjectBase.)
Geschützte Methode IsObjectInitialized Überprüft, ob das Objekt initialisiert wurde. (Geerbt von SqlSmoObject.)
Geschützte Methode IsObjectInSpace Überprüft, ob das Objekt isoliert vorhanden oder mit der SQL Server-Instanz verbunden ist. (Geerbt von SqlSmoObject.)
Geschützte Methode IsVersion80SP3 Ermittelt, ob die SQL Server-Version SQL Server 2000 mit SP3 ist. (Geerbt von SqlSmoObject.)
Geschützte Methode IsVersion90AndAbove Ermittelt, ob die SQL Server-Version SQL Server 2005 oder höher ist. (Geerbt von SqlSmoObject.)
Geschützte Methode MarkDropped Markiert den Status des aktuellen Objekts und alle untergeordneten Auflisteungen als Dropped. (Geerbt von TableViewTableTypeBase.)
Geschützte Methode MarkForDropImpl Legt den zu löschenden SqlSmoState fest. (Geerbt von SqlSmoObject.)
Geschützte Methode MemberwiseClone (Geerbt von Object.)
Geschützte Methode PostAlter Die Methode, die nach dem Ändern von SqlSmoObject aktiviert wird. (Geerbt von SqlSmoObject.)
Geschützte Methode PostCreate Die Methode, die nach dem Erstellen von SqlSmoObject aktiviert wird. (Geerbt von SqlSmoObject.)
Geschützte Methode PostDrop Die Methode, die nach dem Löschen von SqlSmoObject aktiviert wird. (Geerbt von SqlSmoObject.)
Öffentliche Methode ReCompileReferences Recompiles any view or trigger that depends on the base SMO object. (Geerbt von TableViewBase.)
Öffentliche Methode Refresh() () () () Refreshes the View object or Table object properties. (Geerbt von TableViewBase.)
Öffentliche Methode Refresh(Boolean) Refreshes the View object properties with the option to refresh metadata.
Öffentliche Methode Rename Renames the view.
Geschützte Methode RenameImpl Nur für Informationszwecke identifiziert. Nicht unterstützt. Zukünftige Kompatibilität wird nicht sichergestellt. (Geerbt von NamedSmoObject.)
Geschützte Methode RenameImplWorker Nur für Informationszwecke identifiziert. Nicht unterstützt. Zukünftige Kompatibilität wird nicht sichergestellt. (Geerbt von NamedSmoObject.)
Geschützte Methode ResetDesignModeScriptingOptions Setzt Optionen zurück, wie im options-Parameter angegeben. (Geerbt von ScriptSchemaObjectBase.)
Öffentliche Methode Revoke(ObjectPermissionSet, String) Revokes a previously granted set of permissions from a grantee on the view.
Öffentliche Methode Revoke(ObjectPermissionSet, array<String> [] () [] []) Revokes a previously granted set of permissions from a list of grantees on the view.
Öffentliche Methode Revoke(ObjectPermissionSet, String, array<String> [] () [] []) Revokes a previously granted set of permissions from a grantee on the specified columns on the view.
Öffentliche Methode Revoke(ObjectPermissionSet, array<String> [] () [] [], array<String> [] () [] []) Revokes a previously granted set of permissions from a list of grantees on the specified columns on the view.
Öffentliche Methode Revoke(ObjectPermissionSet, String, Boolean, Boolean) Revokes a previously granted set of permissions from a grantee on the view and any other users to whom the grantee has granted the specified set of permissions. The grantee is also given the ability to revoke the specified set of permissions from other users.
Öffentliche Methode Revoke(ObjectPermissionSet, array<String> [] () [] [], Boolean, Boolean) Revokes a previously granted set of permissions from grantees on the view and any other users to whom the grantees have granted the specified set of permissions. The grantees are also given the ability to revoke the specified set of permissions from other users.
Öffentliche Methode Revoke(ObjectPermissionSet, String, Boolean, Boolean, String) Revokes a previously granted set of permissions from a grantee from the view and any other users to whom the grantee has granted the specified set of permissions. The grantee is also given the ability to revoke the specified set of permissions from other users under an assumed role.
Öffentliche Methode Revoke(ObjectPermissionSet, String, array<String> [] () [] [], Boolean, Boolean) Revokes a previously granted set of permissions from grantees on the specified columns on the view and any other users to whom the grantees have granted the specified set of permissions. The grantees are also given the ability to revoke the specified set of permissions from other users under an assumed role.
Öffentliche Methode Revoke(ObjectPermissionSet, array<String> [] () [] [], Boolean, Boolean, String) Revokes a previously granted set of permissions from grantees on the view and any other users to whom the grantees have granted access. The grantees are also given the ability to revoke the specified set of permissions from other users under an assumed role.
Öffentliche Methode Revoke(ObjectPermissionSet, array<String> [] () [] [], array<String> [] () [] [], Boolean, Boolean) Revokes a previously granted set of permissions from grantees on the specified columns on the view and any other users to whom the grantees have granted the specified set of permissions. The grantees are also given the ability to revoke the specified set of permissions from other users under an assumed role.
Öffentliche Methode Revoke(ObjectPermissionSet, String, array<String> [] () [] [], Boolean, Boolean, String) Revokes a previously granted set of permissions from a grantee on the specified columns on the view and any other users to whom the grantee has granted the specified set of permissions. The grantee is also given the ability to revoke the specified set of permissions from other users under an assumed role.
Öffentliche Methode Revoke(ObjectPermissionSet, array<String> [] () [] [], array<String> [] () [] [], Boolean, Boolean, String) Revokes a previously granted set of permissions from the grantees for the specified columns on the view and any other users to whom the grantee has granted access. The grantee is also given the ability to revoke other users' access under an assumed role.
Öffentliche Methode Script() () () () Generiert ein Transact-SQL-Skript, das zum Neuerstellen des Datenbankobjekts verwendet werden kann. (Geerbt von TableViewTableTypeBase.)
Öffentliche Methode Script(ScriptingOptions) Generiert ein Transact-SQL-Skript, das zum Neuerstellen des Datenbankobjekts mit den angegebenen Skriptoptionen verwendet werden kann. (Geerbt von TableViewTableTypeBase.)
Geschützte Methode ScriptAlter Ändert SqlSmoObject gemäß den Parametern. (Geerbt von SqlSmoObject.)
Geschützte Methode ScriptAnsiQI Scripts the database object in ANSI text. (Geerbt von ScriptNameObjectBase.)
Geschützte Methode ScriptChangeOwner This method supports the SMO infrastructure and is not intended to be used directly from your code. (Geerbt von NamedSmoObject.)
Geschützte Methode ScriptCreate Ändert SqlSmoObject gemäß den Parametern. (Geerbt von SqlSmoObject.)
Geschützte Methode ScriptDdl Löst InvalidSmoOperationException aus. (Geerbt von SqlSmoObject.)
Geschützte Methode ScriptDrop Löst InvalidSmoOperationException aus. (Geerbt von SqlSmoObject.)
Öffentliche Methode ScriptHeader Returns the text header with the option to modify the text.
Geschützte Methode ScriptImpl() () () () Ruft eine Skriptauflistung von SqlSmoObject ab. (Geerbt von SqlSmoObject.)
Geschützte Methode ScriptImpl(ScriptingOptions) Ruft eine Skriptauflistung von SqlSmoObject ab. (Geerbt von SqlSmoObject.)
Geschützte Methode ScriptImplWorker Ruft eine Skriptauflistung von SqlSmoObject ab. (Geerbt von SqlSmoObject.)
Geschützte Methode ScriptInformativeHeaders Scripts the information headers. (Geerbt von ScriptNameObjectBase.)
Geschützte Methode ScriptOwner Alters the script owner authorization. (Geerbt von NamedSmoObject.)
Geschützte Methode ScriptRename This method supports the SMO infrastructure and is not intended to be used directly from your code. (Geerbt von NamedSmoObject.)
Geschützte Methode SetCollectionTextMode Sets the collection text mode. (Geerbt von ScriptNameObjectBase.)
Geschützte Methode SetIsSystemNamed Sets a Boolean value that specifies whether the system is named. (Geerbt von ScriptNameObjectBase.)
Geschützte Methode SetParentImpl Legt das übergeordnete Element von SqlSmoObject auf den newParent-Parameter fest. (Geerbt von SqlSmoObject.)
Geschützte Methode SetSchemaOwned Sets the schema owned value. (Geerbt von NamedSmoObject.)
Geschützte Methode SetTextBody Specifies the text body. (Geerbt von ScriptNameObjectBase.)
Geschützte Methode SetTextHeader Specifies the text header. (Geerbt von ScriptNameObjectBase.)
Geschützte Methode SetTextMode Specifies the text mode. (Geerbt von ScriptNameObjectBase.)
Geschützte Methode StoreConstraintsFlags Speichert Einschränkungsflags, wie im options-Parameter angegeben. (Geerbt von ScriptSchemaObjectBase.)
Geschützte Methode SwitchTextMode Switches the text mode. (Geerbt von ScriptNameObjectBase.)
Geschützte Methode ThrowIfTextIsDirtyForAlter Throws an exception of text has been modified and not persisted. (Geerbt von ScriptNameObjectBase.)
Öffentliche Methode ToString Gibt eine String zurück, die das Objekt darstellt, auf das verwiesen wird. (Geerbt von SqlSmoObject.)
Geschützte Methode TouchImpl Nicht implementiert. (Geerbt von SqlSmoObject.)
Geschützte Methode UnbindDefaultImpl Hebt die Bindung der Standardspalten von SqlSmoObject auf. (Geerbt von SqlSmoObject.)
Geschützte Methode UnbindRuleImpl Hebt die Bindung der Regeln von SqlSmoObject auf. (Geerbt von SqlSmoObject.)
Öffentliche Methode UpdateStatistics() () () () Updates statistics for the table or view. (Geerbt von TableViewBase.)
Öffentliche Methode UpdateStatistics(StatisticsTarget, StatisticsScanType) Updates the statistics for the table or view with the option to specify the target and the type of scan performed. (Geerbt von TableViewBase.)
Öffentliche Methode 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. (Geerbt von TableViewBase.)
Öffentliche Methode 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. (Geerbt von TableViewBase.)
Öffentliche Methode Validate Validates the state of an object. (Geerbt von SmoObjectBase.)

Zum Anfang

Ereignisse

  Name Beschreibung
Öffentliches Ereignis PropertyChanged Stellt das Ereignis dar, das bei Änderung einer Eigenschaft auftritt. (Geerbt von SqlSmoObject.)
Öffentliches Ereignis PropertyMetadataChanged Stellt das Ereignis dar, das bei Änderungen an den Eigenschaftsmetadaten auftritt. (Geerbt von SqlSmoObject.)

Zum Anfang

Felder

  Name Beschreibung
Geschütztes Feld m_ExtendedProperties Stellt eine Eigenschaft dar, die zur Erweiterung der von SqlSmoObject bereitgestellten Eigenschaften definiert wird. (Geerbt von SqlSmoObject.)
Geschütztes Feld singletonParent Stellt das übergeordnete Singleton-Element dar. (Geerbt von SqlSmoObject.)

Zum Anfang

Explizite Schnittstellenimplementierungen

  Name Beschreibung
Explizite SchnittstellenimplementierungPrivate Methode IAlienObject. . :: . .Discover Ermittelt alle Abhängigkeiten. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SqlSmoObject.)
Explizite SchnittstellenimplementierungPrivate Methode IAlienObject. . :: . .GetDomainRoot Gibt den Stamm der Domäne zurück. (Geerbt von SqlSmoObject.)
Explizite SchnittstellenimplementierungPrivate Methode IAlienObject. . :: . .GetParent Ruft das übergeordnete Element dieses Objekts ab. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SqlSmoObject.)
Explizite SchnittstellenimplementierungPrivate Methode IAlienObject. . :: . .GetPropertyType Ruft den Typ der angegebenen Eigenschaft ab. (Geerbt von SqlSmoObject.)
Explizite SchnittstellenimplementierungPrivate Methode IAlienObject. . :: . .GetPropertyValue Ruft den Wert der angegebenen Eigenschaft ab. (Geerbt von SqlSmoObject.)
Explizite SchnittstellenimplementierungPrivate Methode IAlienObject. . :: . .GetUrn Ruft den URN (Uniform Resource Name) des Objekts ab. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SqlSmoObject.)
Explizite SchnittstellenimplementierungPrivate Methode IAlienObject. . :: . .Resolve Ruft aus dem URN die Instanz ab, die die Informationen zum Objekt enthält. (Geerbt von SqlSmoObject.)
Explizite SchnittstellenimplementierungPrivate Methode IAlienObject. . :: . .SetObjectState Legt den Objektstatus auf den angegebenen SfcObjectState-Wert fest. (Geerbt von SqlSmoObject.)
Explizite SchnittstellenimplementierungPrivate Methode IAlienObject. . :: . .SetPropertyValue Legt den Eigenschaftswert fest. (Geerbt von SqlSmoObject.)
Explizite SchnittstellenimplementierungPrivate Methode ISfcPropertyProvider. . :: . .GetPropertySet Ruft den Schnittstellenverweis auf den Eigenschaftensatz dieses Objekts ab. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SqlSmoObject.)
Explizite SchnittstellenimplementierungPrivate Eigenschaft ISfcSupportsDesignMode. . :: . .IsDesignMode Nur für Informationszwecke identifiziert. Nicht unterstützt. Zukünftige Kompatibilität wird nicht sichergestellt. Gets a Boolean value that indicates whether the object supports design mode.

Zum Anfang

Hinweise

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

To set View object properties, ALTER permission on the view or ALTER VIEW permission on the database.

To create a view, users must CREATE VIEW permission on the database and ALTER permission on the specified schema.

To drop a view, users must have CONTROL permission on the view and ALTER permission on the specified schema.

To grant, deny, or revoke permissions on the view to other users, users must have CONTROL permission on the view.

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)-Elemente dieses Typs sind Threadsicher. Für Instanzelemente wird die Threadsicherheit nicht gewährleistet.