Aracılığıyla paylaş


View Class

The View object represents a SQL Server view.

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

Syntax

'Bildirim
<EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)> _
<PhysicalFacetAttribute(PhysicalFacetOptions.ReadOnly)> _
Public NotInheritable Class View
    Inherits TableViewBase
    Implements IColumnPermission, IObjectPermission, ICreatable, IAlterable, _
    IDroppable, IRenamable, IExtendedProperties, ITextObject, IViewOptions, _
    IDmfFacet
[EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)] 
[PhysicalFacetAttribute(PhysicalFacetOptions.ReadOnly)] 
public sealed class View : TableViewBase, IColumnPermission, IObjectPermission, ICreatable, 
    IAlterable, IDroppable, IRenamable, IExtendedProperties, ITextObject, 
    IViewOptions, IDmfFacet
[EvaluationModeAttribute(AutomatedPolicyEvaluationMode::CheckOnSchedule)] 
[PhysicalFacetAttribute(PhysicalFacetOptions::ReadOnly)] 
public ref class View sealed : public TableViewBase, IColumnPermission, IObjectPermission, ICreatable, 
    IAlterable, IDroppable, IRenamable, IExtendedProperties, ITextObject, 
    IViewOptions, IDmfFacet
/** @attribute EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule) */ 
/** @attribute PhysicalFacetAttribute(PhysicalFacetOptions.ReadOnly) */ 
public final class View extends TableViewBase implements IColumnPermission, IObjectPermission, 
    ICreatable, IAlterable, IDroppable, IRenamable, IExtendedProperties, 
    ITextObject, IViewOptions, IDmfFacet
EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule) 
PhysicalFacetAttribute(PhysicalFacetOptions.ReadOnly) 
public final class View extends TableViewBase implements IColumnPermission, IObjectPermission, 
    ICreatable, IAlterable, IDroppable, IRenamable, IExtendedProperties, 
    ITextObject, IViewOptions, IDmfFacet

Remarks

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

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.