I have 2 azure databases created in one SQL Server. I.e.
- Database 1 = db1 in xsqldb01.database.windows.net
- Database 2 = db2 in xsqldb01.database.windows.net
I would like to create a username or user login where I can read only data (Select grant only) of both databases. How can I achieve this? Do I need to create a user login with same name in both database?
Best Answer
You can create Login in master database using syntax ..
and then create user in individual databases using syntax
This can be done via SSMS from local machine or VM. I believe you can achieve this using Query Editor in Azure as it does not allow switching context to master database .