Clase View
The View object represents a SQL Server view.
Jerarquía de herencia
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
Espacio de nombres: Microsoft.SqlServer.Management.Smo
Ensamblado: Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)
Sintaxis
'Declaración
<PhysicalFacetAttribute(PhysicalFacetOptions.ReadOnly)> _
<EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)> _
Public NotInheritable Class View _
Inherits TableViewBase _
Implements ISfcSupportsDesignMode, IColumnPermission, IObjectPermission, ICreatable, _
IAlterable, IDroppable, IRenamable, IExtendedProperties, ITextObject, _
IViewOptions, IDmfFacet
'Uso
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
El tipo View expone los siguientes miembros.
Constructores
Nombre | Descripción | |
---|---|---|
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. |
Arriba
Propiedades
Nombre | Descripción | |
---|---|---|
AnsiNullsStatus | Gets the Boolean property value that specifies whether ISO NULL handling is enabled on the view. | |
Columns | Obtiene una colección de columnas. (Se hereda de 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 | Obtiene o establece el valor de propiedad Boolean que especifica si el objeto está establecido para que se ejecute para la opción escalar. (Se hereda de SqlSmoObject.) | |
ExtendedProperties | Obtiene una colección de propiedades extendidas. (Se hereda de TableViewTableTypeBase.) | |
FullTextIndex | Gets the full text index on the table or view. (Se hereda de 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. (Invalida 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 | Obtiene el valor de propiedad Boolean que especifica si las propiedades del objeto se han actualizado pero todavía no son persistentes en el servidor. (Se hereda de SqlSmoObject.) | |
Name | Obtiene o establece un valor String que especifica el nombre del tipo de tabla de la vista. (Se hereda de TableViewTableTypeBase.) | |
ObjectInSpace | Obtiene el valor de propiedad Boolean que especifica si el objeto existe en aislamiento, o si está conectado directa o indirectamente con la instancia de SQL Server. (Se hereda de 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 | Obtiene una colección de objetos Property que representa las propiedades del objeto. (Se hereda de 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 | Obtiene el resultado escalar para el objeto al que se hace referencia. (Se hereda de SqlSmoObject.) | |
Schema | Obtiene o establece un valor String que especifica el nombre del esquema que contiene el tipo de tabla de la vista. (Se hereda de TableViewTableTypeBase.) | |
State | Gets the state of the referenced object. (Se hereda de SmoObjectBase.) | |
Statistics | Represents a collection of Statistic objects. Each Statistic object represents a statistic counter that is defined on the table or view. (Se hereda de 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. (Se hereda de TableViewBase.) | |
Urn | Obtiene el valor de la dirección URN (nombre de recursos uniforme) que identifica de forma única el objeto. (Se hereda de SqlSmoObject.) | |
UserData | Gets or sets user-defined data associated with the referenced object. (Se hereda de SmoObjectBase.) |
Arriba
Métodos
Nombre | Descripción | |
---|---|---|
AddDatabaseContext(StringCollection) | Agrega el contexto de la base de datos a la colección de consultas identificada por el parámetro queries. (Se hereda de SqlSmoObject.) | |
AddDatabaseContext(StringCollection, ScriptingOptions) | Agrega el contexto de la base de datos a la colección de consultas identificada por el parámetro queries usando las opciones de scripting especificadas. (Se hereda de SqlSmoObject.) | |
Alter | Updates any View object property changes on the instance of Microsoft SQL Server. | |
AlterImpl | Activa el evento de objeto modificado. (Se hereda de SqlSmoObject.) | |
AlterImplFinish | Método al que se llama cuando finaliza el evento de objeto modificado. (Se hereda de SqlSmoObject.) | |
AlterImplInit | Método al que se llama cuando se inicializa el evento de objeto modificado. (Se hereda de SqlSmoObject.) | |
AlterImplWorker | Llama a los métodos Alter. (Se hereda de SqlSmoObject.) | |
AppendCommaText | Appends text, optionally separated by a comma. (Se hereda de ScriptNameObjectBase.) | |
AppendWithCommaText | Appends text, optionally separated by a comma. (Se hereda de ScriptNameObjectBase.) | |
AppendWithOption | Appends text and option text separated from the main text with a “WITH” string and optionally separated by a comma. (Se hereda de ScriptNameObjectBase.) | |
AutoGenerateName | Generates a name based on the object Guid. (Se hereda de ScriptNameObjectBase.) | |
BindDefaultImpl | Enlaza los elementos predeterminados identificados por los parámetros. (Se hereda de SqlSmoObject.) | |
BindRuleImpl | Enlaza el esquema de la regla a la regla y las columnas identificadas por los parámetros. (Se hereda de SqlSmoObject.) | |
ChangeSchema | Changes the schema for the view. | |
CheckCollation | Comprueba el orden de las opciones de scripting por el método de intercalación identificado por el parámetro collationName. (Se hereda de SqlSmoObject.) | |
CheckObjectDirty | Checks whether object has been modified and not persisted. (Se hereda de ScriptNameObjectBase.) | |
CheckObjectState() () () () | Valida el estado del objeto al que se hace referencia. (Se hereda de SqlSmoObject.) | |
CheckObjectState(Boolean) | Valida el estado del objeto al que se hace referencia, con la opción de especificar que se produzca una excepción si todavía no se ha creado el objeto. (Se hereda de SqlSmoObject.) | |
CheckObjectStateImpl | Comprueba el estado de un objeto SqlSmoObject. (Se hereda de SqlSmoObject.) | |
CheckTextCorectness | Checks text for correctness against the parameters. (Se hereda de ScriptNameObjectBase.) | |
CheckTextModeSupport | Checks mode of support. (Se hereda de ScriptNameObjectBase.) | |
CheckVersion100 | Comprueba si la versión de SQL Server es SQL Server 2008. (Se hereda de SqlSmoObject.) | |
CheckVersion80 | Comprueba la validez del objeto en SQL Server 2000. (Se hereda de SqlSmoObject.) | |
CheckVersion80SP3 | Comprueba la validez del objeto en SQL Server 2000 SP3. (Se hereda de SqlSmoObject.) | |
CheckVersion90 | Comprueba la validez del objeto en SQL Server 2005. (Se hereda de SqlSmoObject.) | |
CheckVersionBelow90 | Comprueba si la versión de SQL Server es anterior a SQL Server 2005. (Se hereda de SqlSmoObject.) | |
CleanObject | Cleans the referenced object. (Se hereda de ScriptNameObjectBase.) | |
Create | Creates a view on the instance of SQL Server as defined by the View object. | |
CreateImpl | Crea un objeto con opciones de scripting. (Se hereda de SqlSmoObject.) | |
CreateImplFinish | Método al que se llama cuando finaliza el evento Create. (Se hereda de SqlSmoObject.) | |
CreateImplInit | Método al que se llama cuando se inicializa el evento Create. (Se hereda de 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 | Detecta una lista del tipo Object. (Se hereda de SqlSmoObject.) | |
Drop | Removes the view from the database. | |
DropImpl | Quita un SqlSmoObject. (Se hereda de SqlSmoObject.) | |
DropImplWorker | Llama a los métodos Drop. (Se hereda de 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. (Se hereda de 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. (Se hereda de 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. (Se hereda de 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 | Enumera los scripts especificados por el parámetro so. (Se hereda de SqlSmoObject.) | |
EnumScriptImplWorker | Llama a los métodos que enumeran los scripts especificados por el parámetro so. (Se hereda de SqlSmoObject.) | |
EnumScriptImplWorkerSOChanged | Devuelve una cadena IEnumerable que describe las opciones de scripting de un objeto. (Se hereda de SqlSmoObject.) | |
Equals | (Se hereda de Object.) | |
ExecuteNonQuery | (Se hereda de SqlSmoObject.) | |
Finalize | (Se hereda de Object.) | |
ForceTextModeOnTextBody | Enforces text mode on the text body. (Se hereda de ScriptNameObjectBase.) | |
FormatSqlVariant | Da formato a un objeto como tipo SqlVariant. (Se hereda de SqlSmoObject.) | |
GenerateDataSpaceFileStreamScript | Genera un script para crear el archivo de datos. (Se hereda de SqlSmoObject.) | |
GenerateDataSpaceScript | Genera un script para asignar espacio en el archivo de datos. (Se hereda de SqlSmoObject.) | |
GetBindDefaultScript | Obtiene el script que enlaza los valores predeterminados especificados por los parámetros defSchema y defName. (Se hereda de SqlSmoObject.) | |
GetBindRuleScript | Obtiene el script que especifica las reglas de enlace. (Se hereda de SqlSmoObject.) | |
GetBoolParameter(StringBuilder, ScriptingOptions, String, String, Int32%) | Asigna un parámetro booleano del objeto SqlSmoObject. (Se hereda de SqlSmoObject.) | |
GetBoolParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) | Asigna una propiedad booleana del objeto SqlSmoObject. (Se hereda de SqlSmoObject.) | |
GetBraketNameForText | Gets the bracket name. (Se hereda de ScriptNameObjectBase.) | |
GetDateTimeParameter | Asigna la propiedad datetime del objeto SqlSmoObject. (Se hereda de SqlSmoObject.) | |
GetDateTimeParameterAsInt | Asigna la propiedad datetime del objeto SqlSmoObject como un valor entero si la propiedad datetime no es NULL. (Se hereda de SqlSmoObject.) | |
GetDBName | Obtiene el nombre de la base de datos asociada al objeto. (Se hereda de SqlSmoObject.) | |
GetEnumParameter | Asigna una propiedad enumeration del objeto SqlSmoObject. (Se hereda de SqlSmoObject.) | |
GetFragOptionString | Obtiene un objeto FragmentationOption como un valor de cadena. (Se hereda de SqlSmoObject.) | |
GetGuidParameter | Asigna una propiedad Guid del objeto SqlSmoObject. (Se hereda de SqlSmoObject.) | |
GetHashCode | (Se hereda de Object.) | |
GetIsSystemNamed | Gets a Boolean value that specifies whether the system is named. (Se hereda de ScriptNameObjectBase.) | |
GetIsTextDirty | Determines whether the text value is consistent with stored value. (Se hereda de ScriptNameObjectBase.) | |
GetParameter(StringBuilder, ScriptingOptions, String, String, Int32%) | Asigna un parámetro del objeto SqlSmoObject. (Se hereda de SqlSmoObject.) | |
GetParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) | Asigna un parámetro del objeto SqlSmoObject. (Se hereda de SqlSmoObject.) | |
GetPropValue | Obtiene un valor de propiedad del objeto SqlSmoObject. (Se hereda de SqlSmoObject.) | |
GetPropValueOptional | Obtiene un valor de propiedad del objeto SqlSmoObject. (Se hereda de SqlSmoObject.) | |
GetPropValueOptionalAllowNull | Obtiene un valor de propiedad del objeto SqlSmoObject. (Se hereda de SqlSmoObject.) | |
GetRealValue | Obtiene un valor de propiedad del objeto SqlSmoObject. (Se hereda de SqlSmoObject.) | |
GetScriptIncludeExists | Gets the script including the test for existence of type being scripted. (Se hereda de ScriptNameObjectBase.) | |
GetScriptingOptionsForCreate | Obtiene ScriptingOptions para el objeto SqlSmoObject. (Se hereda de SqlSmoObject.) | |
GetServerName | Obtiene el nombre de la instancia de SQL Server con la que está asociado el objeto. (Se hereda de SqlSmoObject.) | |
GetServerObject | Obtiene el servidor del objeto SqlSmoObject. (Se hereda de SqlSmoObject.) | |
GetSqlServerVersionName | Obtiene el nombre de la versión de la instancia de SQL Server con la que está asociado el objeto. (Se hereda de SqlSmoObject.) | |
GetStringParameter(StringBuilder, ScriptingOptions, String, String, Int32%) | Asigna un parámetro de cadena del objeto SqlSmoObject. (Se hereda de SqlSmoObject.) | |
GetStringParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) | Asigna un parámetro de cadena del objeto SqlSmoObject. (Se hereda de SqlSmoObject.) | |
GetTextBody() () () () | Returns the text body. (Se hereda de ScriptNameObjectBase.) | |
GetTextBody(Boolean) | Returns the text body. (Se hereda de ScriptNameObjectBase.) | |
GetTextForScript(ScriptingOptions, Boolean, array<String> [] () [] []) | Gets the text for scripting. (Se hereda de ScriptNameObjectBase.) | |
GetTextForScript(ScriptingOptions, Boolean, array<String> [] () [] [], Boolean) | Gets the text of script object. (Se hereda de ScriptNameObjectBase.) | |
GetTextHeader | Returns the text header. (Se hereda de ScriptNameObjectBase.) | |
GetTextMode | Determines whether the script name is using text mode. (Se hereda de ScriptNameObjectBase.) | |
GetTextProperty(String) | Gets the property as text. (Se hereda de ScriptNameObjectBase.) | |
GetTextProperty(String, ScriptingOptions) | Gets the property as text. (Se hereda de ScriptNameObjectBase.) | |
GetTimeSpanParameterAsInt | Asigna un parámetro de intervalo de tiempo del objeto SqlSmoObject. (Se hereda de SqlSmoObject.) | |
GetType | (Se hereda de Object.) | |
GetUrnRecursive(StringBuilder) | Asigna un objeto Urn del objeto SqlSmoObject. (Se hereda de SqlSmoObject.) | |
GetUrnRecursive(StringBuilder, UrnIdOption) | Asigna un objeto Urn del objeto SqlSmoObject. (Se hereda de 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 | Inicializa los campos del objeto SqlSmoObject. (Se hereda de SqlSmoObject.) | |
Initialize() () () () | Inicializa el objeto y fuerza la carga de las propiedades. (Se hereda de SqlSmoObject.) | |
Initialize(Boolean) | Inicializa el objeto y fuerza la carga de las propiedades. (Se hereda de SqlSmoObject.) | |
IsObjectDirty | Determines whether the referenced object is consistent with the stored object. (Se hereda de ScriptNameObjectBase.) | |
IsObjectInitialized | Comprueba si se ha inicializado el objeto. (Se hereda de SqlSmoObject.) | |
IsObjectInSpace | Comprueba si el objeto está aislado o conectado a la instancia de SQL Server. (Se hereda de SqlSmoObject.) | |
IsVersion80SP3 | Determina si la versión de SQL Server es SQL Server 2000 con SP3. (Se hereda de SqlSmoObject.) | |
IsVersion90AndAbove | Determina si la versión de SQL Server es SQL Server 2005 o posterior. (Se hereda de SqlSmoObject.) | |
MarkDropped | Marca el estado del objeto actual y de todas sus colecciones secundarias cómo Dropped. (Se hereda de TableViewTableTypeBase.) | |
MarkForDropImpl | Establece SqlSmoState en quitado. (Se hereda de SqlSmoObject.) | |
MemberwiseClone | (Se hereda de Object.) | |
PostAlter | Método que se activa tras modificar el objeto SqlSmoObject. (Se hereda de SqlSmoObject.) | |
PostCreate | Método que se activa tras crear el objeto SqlSmoObject. (Se hereda de SqlSmoObject.) | |
PostDrop | Método que se activa tras quitar el objeto SqlSmoObject. (Se hereda de SqlSmoObject.) | |
ReCompileReferences | Recompiles any view or trigger that depends on the base SMO object. (Se hereda de TableViewBase.) | |
Refresh() () () () | Refreshes the View object or Table object properties. (Se hereda de TableViewBase.) | |
Refresh(Boolean) | Refreshes the View object properties with the option to refresh metadata. | |
Rename | Renames the view. | |
RenameImpl | Solamente se identifica con fines informativos. No compatible. La compatibilidad con versiones posteriores no está garantizada. (Se hereda de NamedSmoObject.) | |
RenameImplWorker | Solamente se identifica con fines informativos. No compatible. La compatibilidad con versiones posteriores no está garantizada. (Se hereda de NamedSmoObject.) | |
ResetDesignModeScriptingOptions | Restablece las opciones de acuerdo con lo especificado en el parámetro options. (Se hereda de 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() () () () | Genera un script Transact-SQL que se puede usar para volver a crear el objeto de base de datos. (Se hereda de TableViewTableTypeBase.) | |
Script(ScriptingOptions) | Genera un script Transact-SQL que se puede usar para volver a crear el objeto de base de datos con las opciones de scripting especificadas. (Se hereda de TableViewTableTypeBase.) | |
ScriptAlter | Modifica el objeto SqlSmoObject de acuerdo con los parámetros. (Se hereda de SqlSmoObject.) | |
ScriptAnsiQI | Scripts the database object in ANSI text. (Se hereda de ScriptNameObjectBase.) | |
ScriptChangeOwner | This method supports the SMO infrastructure and is not intended to be used directly from your code. (Se hereda de NamedSmoObject.) | |
ScriptCreate | Modifica el objeto SqlSmoObject de acuerdo con los parámetros. (Se hereda de SqlSmoObject.) | |
ScriptDdl | Inicia InvalidSmoOperationException. (Se hereda de SqlSmoObject.) | |
ScriptDrop | Inicia InvalidSmoOperationException. (Se hereda de SqlSmoObject.) | |
ScriptHeader | Returns the text header with the option to modify the text. | |
ScriptImpl() () () () | Obtiene una colección de los scripts del objeto SqlSmoObject. (Se hereda de SqlSmoObject.) | |
ScriptImpl(ScriptingOptions) | Obtiene una colección de los scripts del objeto SqlSmoObject. (Se hereda de SqlSmoObject.) | |
ScriptImplWorker | Obtiene una colección de los scripts del objeto SqlSmoObject. (Se hereda de SqlSmoObject.) | |
ScriptInformativeHeaders | Scripts the information headers. (Se hereda de ScriptNameObjectBase.) | |
ScriptOwner | Alters the script owner authorization. (Se hereda de NamedSmoObject.) | |
ScriptRename | This method supports the SMO infrastructure and is not intended to be used directly from your code. (Se hereda de NamedSmoObject.) | |
SetCollectionTextMode | Sets the collection text mode. (Se hereda de ScriptNameObjectBase.) | |
SetIsSystemNamed | Sets a Boolean value that specifies whether the system is named. (Se hereda de ScriptNameObjectBase.) | |
SetParentImpl | Establece el elemento primario del objeto SqlSmoObject en el parámetro newParent. (Se hereda de SqlSmoObject.) | |
SetSchemaOwned | Sets the schema owned value. (Se hereda de NamedSmoObject.) | |
SetTextBody | Specifies the text body. (Se hereda de ScriptNameObjectBase.) | |
SetTextHeader | Specifies the text header. (Se hereda de ScriptNameObjectBase.) | |
SetTextMode | Specifies the text mode. (Se hereda de ScriptNameObjectBase.) | |
StoreConstraintsFlags | Almacena marcas de restricción de acuerdo con lo especificado en el parámetro options. (Se hereda de ScriptSchemaObjectBase.) | |
SwitchTextMode | Switches the text mode. (Se hereda de ScriptNameObjectBase.) | |
ThrowIfTextIsDirtyForAlter | Throws an exception of text has been modified and not persisted. (Se hereda de ScriptNameObjectBase.) | |
ToString | Devuelve un valor String que representa el objeto al que se hace referencia. (Se hereda de SqlSmoObject.) | |
TouchImpl | No implementado. (Se hereda de SqlSmoObject.) | |
UnbindDefaultImpl | Desenlaza las columnas predeterminadas del objeto SqlSmoObject. (Se hereda de SqlSmoObject.) | |
UnbindRuleImpl | Desenlaza las reglas del objeto SqlSmoObject. (Se hereda de SqlSmoObject.) | |
UpdateStatistics() () () () | Updates statistics for the table or view. (Se hereda de 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. (Se hereda de 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. (Se hereda de 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. (Se hereda de TableViewBase.) | |
Validate | Validates the state of an object. (Se hereda de SmoObjectBase.) |
Arriba
Eventos
Nombre | Descripción | |
---|---|---|
PropertyChanged | Representa el evento que se produce cuando se cambia una propiedad. (Se hereda de SqlSmoObject.) | |
PropertyMetadataChanged | Representa el evento que se produce cuando cambian los metadatos de la propiedad. (Se hereda de SqlSmoObject.) |
Arriba
Campos
Nombre | Descripción | |
---|---|---|
m_ExtendedProperties | Representa una propiedad definida para extender las propiedades proporcionadas por un objeto SqlSmoObject. (Se hereda de SqlSmoObject.) | |
singletonParent | Representa el elemento primario singleton. (Se hereda de SqlSmoObject.) |
Arriba
Implementaciones de interfaces explícitas
Nombre | Descripción | |
---|---|---|
IAlienObject. . :: . .Discover | Detecta las dependencias. No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server. (Se hereda de SqlSmoObject.) | |
IAlienObject. . :: . .GetDomainRoot | Devuelve la raíz del dominio. (Se hereda de SqlSmoObject.) | |
IAlienObject. . :: . .GetParent | Obtiene el elemento primario de este objeto. No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server. (Se hereda de SqlSmoObject.) | |
IAlienObject. . :: . .GetPropertyType | Obtiene el tipo de la propiedad especificada. (Se hereda de SqlSmoObject.) | |
IAlienObject. . :: . .GetPropertyValue | Obtiene el valor de la propiedad especificada. (Se hereda de SqlSmoObject.) | |
IAlienObject. . :: . .GetUrn | Obtiene el Nombre de recursos uniforme del objeto. No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server. (Se hereda de SqlSmoObject.) | |
IAlienObject. . :: . .Resolve | Obtiene la instancia que contiene la información sobre el objeto del Nombre de recursos unificado del objeto. (Se hereda de SqlSmoObject.) | |
IAlienObject. . :: . .SetObjectState | Establece el estado del objeto en el valor SfcObjectState especificado. (Se hereda de SqlSmoObject.) | |
IAlienObject. . :: . .SetPropertyValue | Establece el valor de la propiedad. (Se hereda de SqlSmoObject.) | |
ISfcPropertyProvider. . :: . .GetPropertySet | Obtiene la referencia de interfaz al conjunto de propiedades de este objeto. No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server. (Se hereda de SqlSmoObject.) | |
ISfcSupportsDesignMode. . :: . .IsDesignMode | Solamente se identifica con fines informativos. No compatible. La compatibilidad con versiones posteriores no está garantizada. Gets a Boolean value that indicates whether the object supports design mode. |
Arriba
Comentarios
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
Todos los miembros estáticos (compartidos en Microsoft Visual Basic) públicos de este tipo son seguros para operaciones multiproceso. No se garantiza que los miembros de instancia sean seguros para subprocesos.
Seguridad para subprocesos
Cualquier miembro público static (Shared en Visual Basic) de este tipo es seguro para subprocesos. No se garantiza que los miembros de instancia sean seguros para subprocesos.
Vea también