you create a string like the following
dim <code>createstring as string
createstring="USE [DatabaseName]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[viewName]
AS
********Put your sql select statement here********
GO"
dim sqlcmd as sqlcommand</code>
sqlcmd=new sqlcommand(createstring,youropenconnection)
sqlcmd.CommandType = CommandType.Text
sqlcmd.ExecuteNonQuery()
This should do the job I think
Schenck