请单击以进行评分并提供反馈
Other versions are also available for the following:
View Class

The View object represents a SQL Server view.

命名空间: Microsoft.SqlServer.Management.Smo
程序集: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Visual Basic (Declaration)
<EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)> _
<PhysicalFacetAttribute(PhysicalFacetOptions.ReadOnly)> _
Public NotInheritable Class View
    Inherits TableViewBase
    Implements IColumnPermission, IObjectPermission, ICreatable, IAlterable, _
    IDroppable, IRenamable, IExtendedProperties, ITextObject, IViewOptions, _
    IDmfFacet
C#
[EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)] 
[PhysicalFacetAttribute(PhysicalFacetOptions.ReadOnly)] 
public sealed class View : TableViewBase, IColumnPermission, IObjectPermission, ICreatable, 
    IAlterable, IDroppable, IRenamable, IExtendedProperties, ITextObject, 
    IViewOptions, IDmfFacet
C++
[EvaluationModeAttribute(AutomatedPolicyEvaluationMode::CheckOnSchedule)] 
[PhysicalFacetAttribute(PhysicalFacetOptions::ReadOnly)] 
public ref class View sealed : public TableViewBase, IColumnPermission, IObjectPermission, ICreatable, 
    IAlterable, IDroppable, IRenamable, IExtendedProperties, ITextObject, 
    IViewOptions, IDmfFacet
J#
/** @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
JScript
EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule) 
PhysicalFacetAttribute(PhysicalFacetOptions.ReadOnly) 
public final class View extends TableViewBase implements IColumnPermission, IObjectPermission, 
    ICreatable, IAlterable, IDroppable, IRenamable, IExtendedProperties, 
    ITextObject, IViewOptions, IDmfFacet

仅 Microsoft .NET Framework 的 2.0 版本支持此命名空间、类或成员。

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.


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.

开发平台

有关支持的平台的列表,请参阅安装 SQL Server 的硬件和软件要求

Target Platforms

有关支持的平台的列表,请参阅安装 SQL Server 的硬件和软件要求
社区内容   什么是社区内容?
添加新内容 RSS  批注
Processing
© 2008 Microsoft Corporation 版权所有。 保留所有权利  |  商标  |  隐私权声明
Page view tracker