标签: azure azure-sql-database
当我尝试创建Azure Active Directory用户时,出现语法错误。
create User s-dbreadwrtnonprod@work.com from external provider;
错误:
Msg 102, Level 15, State 1, Line 11 Incorrect syntax near '-'.
答案 0 :(得分:0)
基于this文档,您需要将用户名放在方括号之间。
CREATE USER [s-dbreadwrtnonprod@work.com] FROM EXTERNAL PROVIDER;
确保已按照概述here配置了Azure Active Directory身份验证。