New user cannot login to SQL Azure

后端 未结 6 2645
臣服心动
臣服心动 2020-12-13 08:19

I am creating a new read/write user on SQL Azure as follows:

-- Connected to master
create login [fred] with password = \'xxx\';

-- Connected to my DB
creat         


        
6条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-13 08:50

    After creating the database user in the specific database Database1, again select 'master' and create database user. Execute below statement twice - one for Database1 and another for 'master'

    CREATE USER appuser1 FROM LOGIN appuser1;
    

    Unfortunately, this is not documented in Azure help https://docs.microsoft.com/en-gb/azure/azure-sql/database/logins-create-manage

提交回复
热议问题