Create A View Using Dynamic Sql
This worked for me Mark

EXEC [OtherDatabase].[sys].[sp_ExecuteSQL] N'CREATE VIEW [SM].[vMyView] AS SELECT ...'


I ran this from the context of the master database and successfully created a new view in the OtherDatabase.