View Object (SQL-DMO)

The View object exposes the attributes of a Microsoft® SQL Server™ view table.

Remarks

SQL Server supports the definition of data views as tables. With the View object, you can:

The Name property of a View object references the name of a SQL Server view table. Its value is constrained by the rules constraining the name of a view table.

To create a new SQL Server view table

  1. Create a View object.
  2. Set the Name property.
  3. Set the Text property to the Transact-SQL SELECT statement defining the view table. For more information about valid SELECT statements for view table definition, see CREATE VIEW.
  4. Add the View object to the Views collection of a connected Database object.
Methods
Alter Method ListPermissions Method
Deny Method (Table, View) ListUserPermissions Method
EnumDependencies Method Remove Method (Objects)
ExportData Method Revoke Method (Table, View)
Grant Method (Table, View) Script Method
ListColumns Method  

Properties
AnsiNullsStatus Property Owner Property (Database Objects)
CreateDate Property QuotedIdentifierStatus Property
ID Property SystemObject Property
Name Property Text Property


(c) 1988-98 Microsoft Corporation. All Rights Reserved.