You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

创建Azure SQL数据仓库数据库遇语法错误,请求技术协助

Fixing the Syntax Error When Creating Azure SQL Data Warehouse Database

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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.25 03:33:51