Share via


View.ChangeSchema Method

Changes the schema for the view.

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

Syntax

'Declaration
Public Sub ChangeSchema ( _
    newSchema As String _
)
'Usage
Dim instance As View 
Dim newSchema As String

instance.ChangeSchema(newSchema)
public void ChangeSchema(
    string newSchema
)
public:
void ChangeSchema(
    String^ newSchema
)
member ChangeSchema : 
        newSchema:string -> unit
public function ChangeSchema(
    newSchema : String
)

Parameters

Examples

Creating, Altering, and Removing Views

See Also

Reference

View Class

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

Designing and Implementing Views

CREATE VIEW (Transact-SQL)