View Constructor (Database, String, String)
Initializes a new instance of the View object on the specified database and with the specified name and schema.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
Syntax
'Declaration
Public Sub New ( _
database As Database, _
name As String, _
schema As String _
)
public View (
Database database,
string name,
string schema
)
public:
View (
Database^ database,
String^ name,
String^ schema
)
public View (
Database database,
String name,
String schema
)
public function View (
database : Database,
name : String,
schema : String
)
Parameters
- database
A Database object value that specifies the database on which to create the view.
- name
A String value that specifies the schema for the view.
- schema
A String value that specifies the name of the view.
Example
How to: Create, Alter, and Remove a View in Visual Basic .NET
Platforms
Development Platforms
For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.
Target Platforms
For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.
See Also
Reference
View Class
View Members
Microsoft.SqlServer.Management.Smo Namespace
Other Resources
Designing and Implementing Views
Creating, Altering, and Removing Views
CREATE VIEW (Transact-SQL)