当我尝试创建Azure Active Directory用户时,出现语法错误。
create User s-dbreadwrtnonprod@work.com from external provider;
错误:
Msg 102, Level 15, State 1, Line 11 Incorrect syntax near '-'.
根据此文档,您需要将用户名放在括号之间。
CREATE USER [s-dbreadwrtnonprod@work.com] FROM EXTERNAL PROVIDER;
请确保已按照此处所述配置了 Azure Active Directory 身份验证。