View-Klasse
The View object represents a SQL Server view.
Vererbungshierarchie
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..::..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 | |
---|---|---|
View() () () () | Initializes a new instance of the View object. | |
View(Database, String) | Initializes a new instance of the View object on the specified database and with the specified name. | |
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 | |
---|---|---|
AnsiNullsStatus | Gets the Boolean property value that specifies whether ISO NULL handling is enabled on the view. | |
Columns | Ruft eine Spaltenauflistung ab. (Geerbt von TableViewTableTypeBase.) | |
CreateDate | Gets the time and date when the view was created. | |
DateLastModified | Gets the time and date when the view was last modified. | |
Events | Gets the events associated with the view. | |
ExecuteForScalar | Ruft den Boolean-Eigenschaftswert ab, der angibt, ob das Objekt auf die ExecuteForScalar-Option festgelegt ist, oder legt ihn fest. (Geerbt von SqlSmoObject.) | |
ExtendedProperties | Ruft eine Auflistung erweiterter Eigenschaften ab. (Geerbt von TableViewTableTypeBase.) | |
FullTextIndex | Gets the full text index on the table or view. (Geerbt von TableViewBase.) | |
HasAfterTrigger | Gets the Boolean property value that specifies whether the view has any after triggers. | |
HasColumnSpecification | Gets the Boolean property that specifies whether the view has a column specification. | |
HasDeleteTrigger | Gets the Boolean property value that specifies whether the view has a delete trigger. | |
HasIndex | Gets the Boolean property value that specifies whether the view has at least one index. | |
HasInsertTrigger | Gets the Boolean property value that specifies whether the view has an insert trigger. | |
HasInsteadOfTrigger | Gets the Boolean property value that specifies whether the view has any instead of triggers. | |
HasUpdateTrigger | Gets the Boolean property value that specifies whether the view has at least one update trigger. | |
ID | Gets the ID value that uniquely identifies the view. | |
Indexes | Gets the IndexCollection object. (Überschreibt TableViewTableTypeBase. . :: . .Indexes.) | |
IsEncrypted | Gets or sets the Boolean property that specifies whether the view is encrypted. | |
IsIndexable | Gets the Boolean property that specifies whether it is possible to place an index on the view. | |
IsSchemaBound | Gets or sets the Boolean property that specifies whether a schema is bound to the view. | |
IsSchemaOwned | Gets a Boolean value that indicates whether the View object is owned by a schema. | |
IsSystemObject | Gets the Boolean property value that specifies whether the view is a system object. | |
IsTouched | Ruft den Boolean-Eigenschaftswert ab, der angibt, ob die Objekteigenschaften aktualisiert, aber noch nicht permanent auf dem Server gespeichert wurden. (Geerbt von SqlSmoObject.) | |
Name | Ruft einen String-Wert ab, der den Namen des Sichttabellentyps angibt, oder legt ihn fest. (Geerbt von TableViewTableTypeBase.) | |
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.) | |
Owner | Gets the name of the owner of the UserDefinedType object. | |
Parent | Gets the Database object that is the parent of the View object. | |
Properties | Ruft eine Auflistung von Property-Objekten ab, die die Objekteigenschaften darstellen. (Geerbt von SqlSmoObject.) | |
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. | |
ReturnsViewMetadata | Gets or sets a Boolean property value that specifies whether the view returns metadata. | |
ScalarResult | Ruft das skalare Ergebnis für das Objekt ab, auf das verwiesen wird. (Geerbt von SqlSmoObject.) | |
Schema | Ruft einen String-Wert ab, der den Namen des Schemas mit dem Sichttabellentyp angibt, oder legt ihn fest. (Geerbt von TableViewTableTypeBase.) | |
State | Gets the state of the referenced object. (Geerbt von SmoObjectBase.) | |
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.) | |
TextBody | Gets or sets the Transact-SQL string that defines the view. | |
TextHeader | Gets or sets the header part of the Transact-SQL string that defines the view. | |
TextMode | Gets or sets the Boolean property that specifies whether the text header is editable as text. | |
Triggers | Represents a collection of Trigger objects. Each Trigger object represents a trigger that is defined on the table or view. (Geerbt von TableViewBase.) | |
Urn | Ruft den Wert der URN (Uniform Resource Name)-Adresse ab, durch den das Objekt eindeutig identifiziert wird. (Geerbt von SqlSmoObject.) | |
UserData | Gets or sets user-defined data associated with the referenced object. (Geerbt von SmoObjectBase.) |
Zum Anfang
Methoden
Name | Beschreibung | |
---|---|---|
AddDatabaseContext(StringCollection) | Fügt der Auflistung der vom queries-Parameter identifizierten Abfragen den Datenbankkontext hinzu. (Geerbt von SqlSmoObject.) | |
AddDatabaseContext(StringCollection, ScriptingOptions) | Fügt der Auflistung der vom queries-Parameter identifizierten Abfragen den Datenbankkontext gemäß den angegebenen Skriptoptionen hinzu. (Geerbt von SqlSmoObject.) | |
Alter | Updates any View object property changes on the instance of Microsoft SQL Server. | |
AlterImpl | Aktiviert das Änderungsereignis des Objekts. (Geerbt von SqlSmoObject.) | |
AlterImplFinish | Die Methode, die nach Beendigung des Änderungsereignisses des Objekts aufgerufen wird. (Geerbt von SqlSmoObject.) | |
AlterImplInit | Die Methode, die bei der Initialisierung des Änderungsereignisses des Objekts aufgerufen wird. (Geerbt von SqlSmoObject.) | |
AlterImplWorker | Ruft die ALTER-Methoden auf. (Geerbt von SqlSmoObject.) | |
AppendCommaText | Appends text, optionally separated by a comma. (Geerbt von ScriptNameObjectBase.) | |
AppendWithCommaText | Appends text, optionally separated by a comma. (Geerbt von ScriptNameObjectBase.) | |
AppendWithOption | Appends text and option text separated from the main text with a “WITH” string and optionally separated by a comma. (Geerbt von ScriptNameObjectBase.) | |
AutoGenerateName | Generates a name based on the object Guid. (Geerbt von ScriptNameObjectBase.) | |
BindDefaultImpl | Bindet die von den Parametern identifizierten Standardelemente. (Geerbt von SqlSmoObject.) | |
BindRuleImpl | Bindet das Regelschema an die Regel und die Spalten, die von den Parametern identifiziert werden. (Geerbt von SqlSmoObject.) | |
ChangeSchema | Changes the schema for the view. | |
CheckCollation | Überprüft die Reihenfolge der Skriptoptionen anhand der vom collationName-Parameter identifizierten Sortierungsmethode. (Geerbt von SqlSmoObject.) | |
CheckObjectDirty | Checks whether object has been modified and not persisted. (Geerbt von ScriptNameObjectBase.) | |
CheckObjectState() () () () | Überprüft den Status des Objekts, auf das verwiesen wird. (Geerbt von SqlSmoObject.) | |
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.) | |
CheckObjectStateImpl | Überprüft den Zustand von SqlSmoObject. (Geerbt von SqlSmoObject.) | |
CheckTextCorectness | Checks text for correctness against the parameters. (Geerbt von ScriptNameObjectBase.) | |
CheckTextModeSupport | Checks mode of support. (Geerbt von ScriptNameObjectBase.) | |
CheckVersion100 | Überprüft, ob die SQL Server-Version SQL Server 2008 ist. (Geerbt von SqlSmoObject.) | |
CheckVersion80 | Überprüft die Gültigkeit des Objekts für SQL Server 2000. (Geerbt von SqlSmoObject.) | |
CheckVersion80SP3 | Überprüft die Gültigkeit des Objekts für SQL Server 2000 SP3. (Geerbt von SqlSmoObject.) | |
CheckVersion90 | Überprüft die Gültigkeit des Objekts für SQL Server 2005. (Geerbt von SqlSmoObject.) | |
CheckVersionBelow90 | Überprüft, ob die SQL Server-Version älter als SQL Server 2005 ist. (Geerbt von SqlSmoObject.) | |
CleanObject | Cleans the referenced object. (Geerbt von ScriptNameObjectBase.) | |
Create | Creates a view on the instance of SQL Server as defined by the View object. | |
CreateImpl | Erstellt ein Objekt mit Skriptoptionen. (Geerbt von SqlSmoObject.) | |
CreateImplFinish | Die Methode, die nach Beendigung des CREATE-Ereignisses aufgerufen wird. (Geerbt von SqlSmoObject.) | |
CreateImplInit | Die Methode, die bei Initialisierung des CREATE-Ereignisses aufgerufen wird. (Geerbt von SqlSmoObject.) | |
Deny(ObjectPermissionSet, String) | Denies the specified set of permissions for the specified grantee on the view. | |
Deny(ObjectPermissionSet, array<String> [] () [] []) | Denies the specified set of permissions for the specified grantees on the view. | |
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. | |
Deny(ObjectPermissionSet, String, array<String> [] () [] []) | Denies the specified set of permissions to the grantee on the specified columns on the view. | |
Deny(ObjectPermissionSet, array<String> [] () [] [], Boolean) | Denies the specified permission for the specified grantees on the view. | |
Deny(ObjectPermissionSet, array<String> [] () [] [], array<String> [] () [] []) | Denies the specified set of permissions for the grantees on the specified columns on the view. | |
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. | |
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. | |
Discover | Ermittelt eine Liste vom Typ Object. (Geerbt von SqlSmoObject.) | |
Drop | Removes the view from the database. | |
DropImpl | Löscht SqlSmoObject. (Geerbt von SqlSmoObject.) | |
DropImplWorker | Ruft die DROP-Methoden auf. (Geerbt von SqlSmoObject.) | |
EnumColumnPermissions() () () () | Enumerates a list of column permissions for the view. | |
EnumColumnPermissions(String) | Enumerates a list of column permissions for a specified grantee on the view. | |
EnumColumnPermissions(ObjectPermissionSet) | Enumerates a list of column permissions for a specified permission on the view. | |
EnumColumnPermissions(String, ObjectPermissionSet) | Enumerates a list of column permissions for a specified grantee and a specified permission on the view. | |
EnumColumns | Enumerates a list of columns defined in the view. | |
EnumFragmentation() () () () | Enumerates information about fragments of data that are stored in a table or view. (Geerbt von TableViewBase.) | |
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.) | |
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.) | |
EnumObjectPermissions() () () () | Enumerates a list of object permissions for the view. | |
EnumObjectPermissions(String) | Enumerates a list of object permissions for a specified grantee on the view. | |
EnumObjectPermissions(ObjectPermissionSet) | Enumerates a list of object permissions for a specified permission on the view. | |
EnumObjectPermissions(String, ObjectPermissionSet) | Enumerates a list of object permissions for a specified grantee and a specified permission on the view. | |
EnumScriptImpl | Listet die vom so-Parameter angegebenen Skripts auf. (Geerbt von SqlSmoObject.) | |
EnumScriptImplWorker | Ruft die Methoden auf, die die vom so-Parameter angegebenen Skripts auflisten. (Geerbt von SqlSmoObject.) | |
EnumScriptImplWorkerSOChanged | Gibt eine IEnumerable-Zeichenfolge zurück, die die Skriptoptionen für ein Objekt beschreibt. (Geerbt von SqlSmoObject.) | |
Equals | (Geerbt von Object.) | |
ExecuteNonQuery | (Geerbt von SqlSmoObject.) | |
Finalize | (Geerbt von Object.) | |
ForceTextModeOnTextBody | Enforces text mode on the text body. (Geerbt von ScriptNameObjectBase.) | |
FormatSqlVariant | Formatiert ein Objekt als SqlVariant-Typ. (Geerbt von SqlSmoObject.) | |
GenerateDataSpaceFileStreamScript | Generiert ein Skript zum Erstellen der Datendatei. (Geerbt von SqlSmoObject.) | |
GenerateDataSpaceScript | Generiert ein Skript zum Zuordnen von Speicherplatz in der Datendatei. (Geerbt von SqlSmoObject.) | |
GetBindDefaultScript | Ruft das Skript ab, durch das die vom defSchema-Parameter und defName-Parameter angegebenen Standardwerte gebunden werden. (Geerbt von SqlSmoObject.) | |
GetBindRuleScript | Ruft das Skript ab, das die Bindungsregeln angibt. (Geerbt von SqlSmoObject.) | |
GetBoolParameter(StringBuilder, ScriptingOptions, String, String, Int32%) | Weist einen booleschen Parameter von SqlSmoObject zu. (Geerbt von SqlSmoObject.) | |
GetBoolParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) | Weist eine boolesche Eigenschaft von SqlSmoObject zu. (Geerbt von SqlSmoObject.) | |
GetBraketNameForText | Gets the bracket name. (Geerbt von ScriptNameObjectBase.) | |
GetDateTimeParameter | Weist die datetime-Eigenschaft von SqlSmoObject zu. (Geerbt von SqlSmoObject.) | |
GetDateTimeParameterAsInt | Weist die datetime-Eigenschaft von SqlSmoObject als ganzzahligen Wert zu, wenn die datetime-Eigenschaft nicht NULL ist. (Geerbt von SqlSmoObject.) | |
GetDBName | Ruft den Datenbanknamen ab, der dem Objekt zugeordnet ist. (Geerbt von SqlSmoObject.) | |
GetEnumParameter | Weist die Enumerationseigenschaft von SqlSmoObject zu. (Geerbt von SqlSmoObject.) | |
GetFragOptionString | Ruft ein FragmentationOption-Objekt als Zeichenfolgenwert ab. (Geerbt von SqlSmoObject.) | |
GetGuidParameter | Weist eine Guid-Eigenschaft von SqlSmoObject zu. (Geerbt von SqlSmoObject.) | |
GetHashCode | (Geerbt von Object.) | |
GetIsSystemNamed | Gets a Boolean value that specifies whether the system is named. (Geerbt von ScriptNameObjectBase.) | |
GetIsTextDirty | Determines whether the text value is consistent with stored value. (Geerbt von ScriptNameObjectBase.) | |
GetParameter(StringBuilder, ScriptingOptions, String, String, Int32%) | Weist einen Parameter von SqlSmoObject zu. (Geerbt von SqlSmoObject.) | |
GetParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) | Weist einen Parameter von SqlSmoObject zu. (Geerbt von SqlSmoObject.) | |
GetPropValue | Ruft einen Eigenschaftswert des SqlSmoObject-Objekts ab. (Geerbt von SqlSmoObject.) | |
GetPropValueOptional | Ruft einen Eigenschaftswert des SqlSmoObject-Objekts ab. (Geerbt von SqlSmoObject.) | |
GetPropValueOptionalAllowNull | Ruft einen Eigenschaftswert des SqlSmoObject-Objekts ab. (Geerbt von SqlSmoObject.) | |
GetRealValue | Ruft einen Eigenschaftswert des SqlSmoObject-Objekts ab. (Geerbt von SqlSmoObject.) | |
GetScriptIncludeExists | Gets the script including the test for existence of type being scripted. (Geerbt von ScriptNameObjectBase.) | |
GetScriptingOptionsForCreate | Ruft ScriptingOptions für das SqlSmoObject-Objekt ab. (Geerbt von SqlSmoObject.) | |
GetServerName | Ruft den Namen der SQL Server-Instanz ab, der das Objekt zugeordnet ist. (Geerbt von SqlSmoObject.) | |
GetServerObject | Ruft den Server des SqlSmoObject-Objekts ab. (Geerbt von SqlSmoObject.) | |
GetSqlServerVersionName | Ruft den Versionsnamen der SQL Server-Instanz ab, der das Objekt zugeordnet ist. (Geerbt von SqlSmoObject.) | |
GetStringParameter(StringBuilder, ScriptingOptions, String, String, Int32%) | Weist einen Zeichenfolgenparameter des SqlSmoObject-Objekts zu. (Geerbt von SqlSmoObject.) | |
GetStringParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) | Weist einen Zeichenfolgenparameter des SqlSmoObject-Objekts zu. (Geerbt von SqlSmoObject.) | |
GetTextBody() () () () | Returns the text body. (Geerbt von ScriptNameObjectBase.) | |
GetTextBody(Boolean) | Returns the text body. (Geerbt von ScriptNameObjectBase.) | |
GetTextForScript(ScriptingOptions, Boolean, array<String> [] () [] []) | Gets the text for scripting. (Geerbt von ScriptNameObjectBase.) | |
GetTextForScript(ScriptingOptions, Boolean, array<String> [] () [] [], Boolean) | Gets the text of script object. (Geerbt von ScriptNameObjectBase.) | |
GetTextHeader | Returns the text header. (Geerbt von ScriptNameObjectBase.) | |
GetTextMode | Determines whether the script name is using text mode. (Geerbt von ScriptNameObjectBase.) | |
GetTextProperty(String) | Gets the property as text. (Geerbt von ScriptNameObjectBase.) | |
GetTextProperty(String, ScriptingOptions) | Gets the property as text. (Geerbt von ScriptNameObjectBase.) | |
GetTimeSpanParameterAsInt | Weist einen Zeitraumparameter des SqlSmoObject-Objekts zu. (Geerbt von SqlSmoObject.) | |
GetType | (Geerbt von Object.) | |
GetUrnRecursive(StringBuilder) | Weist ein Urn-Objekt des SqlSmoObject-Objekts zu. (Geerbt von SqlSmoObject.) | |
GetUrnRecursive(StringBuilder, UrnIdOption) | Weist ein Urn-Objekt des SqlSmoObject-Objekts zu. (Geerbt von SqlSmoObject.) | |
Grant(ObjectPermissionSet, String) | Grants the specified set of permissions to the specified grantee on the view. | |
Grant(ObjectPermissionSet, array<String> [] () [] []) | Grants the specified set of permissions to the specified grantees on the view. | |
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. | |
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. | |
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. | |
Grant(ObjectPermissionSet, array<String> [] () [] [], array<String> [] () [] []) | Grants the specified set of permissions to the grantees to the specified columns on the view. | |
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. | |
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. | |
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. | |
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. | |
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. | |
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. | |
ImplInitialize | Initialisiert die Felder des SqlSmoObject-Objekts. (Geerbt von SqlSmoObject.) | |
Initialize() () () () | Initialisiert das Objekt und erzwingt das Laden der Eigenschaften. (Geerbt von SqlSmoObject.) | |
Initialize(Boolean) | Initialisiert das Objekt und erzwingt das Laden der Eigenschaften. (Geerbt von SqlSmoObject.) | |
IsObjectDirty | Determines whether the referenced object is consistent with the stored object. (Geerbt von ScriptNameObjectBase.) | |
IsObjectInitialized | Überprüft, ob das Objekt initialisiert wurde. (Geerbt von SqlSmoObject.) | |
IsObjectInSpace | Überprüft, ob das Objekt isoliert vorhanden oder mit der SQL Server-Instanz verbunden ist. (Geerbt von SqlSmoObject.) | |
IsVersion80SP3 | Ermittelt, ob die SQL Server-Version SQL Server 2000 mit SP3 ist. (Geerbt von SqlSmoObject.) | |
IsVersion90AndAbove | Ermittelt, ob die SQL Server-Version SQL Server 2005 oder höher ist. (Geerbt von SqlSmoObject.) | |
MarkDropped | Markiert den Status des aktuellen Objekts und alle untergeordneten Auflisteungen als Dropped. (Geerbt von TableViewTableTypeBase.) | |
MarkForDropImpl | Legt den zu löschenden SqlSmoState fest. (Geerbt von SqlSmoObject.) | |
MemberwiseClone | (Geerbt von Object.) | |
PostAlter | Die Methode, die nach dem Ändern von SqlSmoObject aktiviert wird. (Geerbt von SqlSmoObject.) | |
PostCreate | Die Methode, die nach dem Erstellen von SqlSmoObject aktiviert wird. (Geerbt von SqlSmoObject.) | |
PostDrop | Die Methode, die nach dem Löschen von SqlSmoObject aktiviert wird. (Geerbt von SqlSmoObject.) | |
ReCompileReferences | Recompiles any view or trigger that depends on the base SMO object. (Geerbt von TableViewBase.) | |
Refresh() () () () | Refreshes the View object or Table object properties. (Geerbt von TableViewBase.) | |
Refresh(Boolean) | Refreshes the View object properties with the option to refresh metadata. | |
Rename | Renames the view. | |
RenameImpl | Nur für Informationszwecke identifiziert. Nicht unterstützt. Zukünftige Kompatibilität wird nicht sichergestellt. (Geerbt von NamedSmoObject.) | |
RenameImplWorker | Nur für Informationszwecke identifiziert. Nicht unterstützt. Zukünftige Kompatibilität wird nicht sichergestellt. (Geerbt von NamedSmoObject.) | |
ResetDesignModeScriptingOptions | Setzt Optionen zurück, wie im options-Parameter angegeben. (Geerbt von ScriptSchemaObjectBase.) | |
Revoke(ObjectPermissionSet, String) | Revokes a previously granted set of permissions from a grantee on the view. | |
Revoke(ObjectPermissionSet, array<String> [] () [] []) | Revokes a previously granted set of permissions from a list of grantees on the view. | |
Revoke(ObjectPermissionSet, String, array<String> [] () [] []) | Revokes a previously granted set of permissions from a grantee on the specified columns on the view. | |
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. | |
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. | |
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. | |
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. | |
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. | |
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. | |
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. | |
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. | |
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. | |
Script() () () () | Generiert ein Transact-SQL-Skript, das zum Neuerstellen des Datenbankobjekts verwendet werden kann. (Geerbt von TableViewTableTypeBase.) | |
Script(ScriptingOptions) | Generiert ein Transact-SQL-Skript, das zum Neuerstellen des Datenbankobjekts mit den angegebenen Skriptoptionen verwendet werden kann. (Geerbt von TableViewTableTypeBase.) | |
ScriptAlter | Ändert SqlSmoObject gemäß den Parametern. (Geerbt von SqlSmoObject.) | |
ScriptAnsiQI | Scripts the database object in ANSI text. (Geerbt von ScriptNameObjectBase.) | |
ScriptChangeOwner | This method supports the SMO infrastructure and is not intended to be used directly from your code. (Geerbt von NamedSmoObject.) | |
ScriptCreate | Ändert SqlSmoObject gemäß den Parametern. (Geerbt von SqlSmoObject.) | |
ScriptDdl | Löst InvalidSmoOperationException aus. (Geerbt von SqlSmoObject.) | |
ScriptDrop | Löst InvalidSmoOperationException aus. (Geerbt von SqlSmoObject.) | |
ScriptHeader | Returns the text header with the option to modify the text. | |
ScriptImpl() () () () | Ruft eine Skriptauflistung von SqlSmoObject ab. (Geerbt von SqlSmoObject.) | |
ScriptImpl(ScriptingOptions) | Ruft eine Skriptauflistung von SqlSmoObject ab. (Geerbt von SqlSmoObject.) | |
ScriptImplWorker | Ruft eine Skriptauflistung von SqlSmoObject ab. (Geerbt von SqlSmoObject.) | |
ScriptInformativeHeaders | Scripts the information headers. (Geerbt von ScriptNameObjectBase.) | |
ScriptOwner | Alters the script owner authorization. (Geerbt von NamedSmoObject.) | |
ScriptRename | This method supports the SMO infrastructure and is not intended to be used directly from your code. (Geerbt von NamedSmoObject.) | |
SetCollectionTextMode | Sets the collection text mode. (Geerbt von ScriptNameObjectBase.) | |
SetIsSystemNamed | Sets a Boolean value that specifies whether the system is named. (Geerbt von ScriptNameObjectBase.) | |
SetParentImpl | Legt das übergeordnete Element von SqlSmoObject auf den newParent-Parameter fest. (Geerbt von SqlSmoObject.) | |
SetSchemaOwned | Sets the schema owned value. (Geerbt von NamedSmoObject.) | |
SetTextBody | Specifies the text body. (Geerbt von ScriptNameObjectBase.) | |
SetTextHeader | Specifies the text header. (Geerbt von ScriptNameObjectBase.) | |
SetTextMode | Specifies the text mode. (Geerbt von ScriptNameObjectBase.) | |
StoreConstraintsFlags | Speichert Einschränkungsflags, wie im options-Parameter angegeben. (Geerbt von ScriptSchemaObjectBase.) | |
SwitchTextMode | Switches the text mode. (Geerbt von ScriptNameObjectBase.) | |
ThrowIfTextIsDirtyForAlter | Throws an exception of text has been modified and not persisted. (Geerbt von ScriptNameObjectBase.) | |
ToString | Gibt eine String zurück, die das Objekt darstellt, auf das verwiesen wird. (Geerbt von SqlSmoObject.) | |
TouchImpl | Nicht implementiert. (Geerbt von SqlSmoObject.) | |
UnbindDefaultImpl | Hebt die Bindung der Standardspalten von SqlSmoObject auf. (Geerbt von SqlSmoObject.) | |
UnbindRuleImpl | Hebt die Bindung der Regeln von SqlSmoObject auf. (Geerbt von SqlSmoObject.) | |
UpdateStatistics() () () () | Updates statistics for the table or view. (Geerbt von TableViewBase.) | |
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.) | |
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.) | |
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.) | |
Validate | Validates the state of an object. (Geerbt von SmoObjectBase.) |
Zum Anfang
Ereignisse
Name | Beschreibung | |
---|---|---|
PropertyChanged | Stellt das Ereignis dar, das bei Änderung einer Eigenschaft auftritt. (Geerbt von SqlSmoObject.) | |
PropertyMetadataChanged | Stellt das Ereignis dar, das bei Änderungen an den Eigenschaftsmetadaten auftritt. (Geerbt von SqlSmoObject.) |
Zum Anfang
Felder
Name | Beschreibung | |
---|---|---|
m_ExtendedProperties | Stellt eine Eigenschaft dar, die zur Erweiterung der von SqlSmoObject bereitgestellten Eigenschaften definiert wird. (Geerbt von SqlSmoObject.) | |
singletonParent | Stellt das übergeordnete Singleton-Element dar. (Geerbt von SqlSmoObject.) |
Zum Anfang
Explizite Schnittstellenimplementierungen
Name | Beschreibung | |
---|---|---|
IAlienObject. . :: . .Discover | Ermittelt alle Abhängigkeiten. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur. (Geerbt von SqlSmoObject.) | |
IAlienObject. . :: . .GetDomainRoot | Gibt den Stamm der Domäne zurück. (Geerbt von SqlSmoObject.) | |
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.) | |
IAlienObject. . :: . .GetPropertyType | Ruft den Typ der angegebenen Eigenschaft ab. (Geerbt von SqlSmoObject.) | |
IAlienObject. . :: . .GetPropertyValue | Ruft den Wert der angegebenen Eigenschaft ab. (Geerbt von SqlSmoObject.) | |
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.) | |
IAlienObject. . :: . .Resolve | Ruft aus dem URN die Instanz ab, die die Informationen zum Objekt enthält. (Geerbt von SqlSmoObject.) | |
IAlienObject. . :: . .SetObjectState | Legt den Objektstatus auf den angegebenen SfcObjectState-Wert fest. (Geerbt von SqlSmoObject.) | |
IAlienObject. . :: . .SetPropertyValue | Legt den Eigenschaftswert fest. (Geerbt von SqlSmoObject.) | |
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.) | |
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.
Siehe auch