An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
Change
SET @statement = N'CREATE OR ALTER VIEW '+@ViewName+'AS
to
SET @statement = N'CREATE OR ALTER VIEW '+@ViewName+' AS
That is, you need a space before AS.