Creating, Altering, and Removing Views
In SQL Server Management Objects (SMO), SQL Server views are represented by the View object.
The TextBody property of the View object defines the view. It is the equivalent of the Transact-SQL SELECT statement for creating a view.