创建Azure SQL数据仓库数据库遇语法错误,请求技术协助
Hey there, let's sort out that syntax error you're running into. The error Msg 103010, Level 16, State 1, Line 1 Parse error at line: 1, column: 17: Incorrect syntax near 'TESTDWHDB' is happening because you've placed the COLLATE clause in the wrong position.
For Azure SQL Data Warehouse (now officially known as Synapse Analytics Dedicated SQL Pool), the correct syntax requires the collation setting to come right after the database name, before the parentheses that define the warehouse-specific parameters like edition, service objective, and max size.
Corrected Query
CREATE DATABASE TESTDWHDB COLLATE SQL_Latin1_General_CP1_CI_AS ( EDITION='datawarehouse', SERVICE_OBJECTIVE = 'DW100', MAXSIZE= 1024 GB );
A quick note: Make sure you're running this query from the server-level context (not connected to an existing database) in the Azure portal's query pane or Synapse Studio—this ensures the command targets the server to create the new data warehouse.
内容的提问来源于stack exchange,提问作者Koushik

