Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating new user/login in sql azure

Create a new user/login in sql azure with access to read/insert/update on the database items like tables sp,view etc.

This user will not have the permission to drop table/drop procedures.

Please give me an example.

like image 786
kapil Avatar asked May 19 '11 11:05

kapil


People also ask

How do I add a user to Azure SQL?

Connect to your Azure SQL Database server with SSMS as an admin and choose the database you want to add a user to in the dropdown. Add Azure Active Directory user '[email protected]' then add it to the db_datareader and db_datawriter roles.

How do I create a login managed instance in SQL?

Open a new query window in SQL Server Management Studio. As a test, log into the managed instance with the newly created login or group. Open a new connection to the managed instance, and use the new login when authenticating. In Object Explorer, right-click the server and choose New Query for the new connection.

What is the syntax for creating a new login on the SQL Server?

CREATE LOGIN [<domainname>\<loginname>] FROM WINDOWS; Example to create a login from a Windows domain account. CREATE LOGIN <loginname> WITH PASSWORD = '<Password>', SID = 0x241C11948AEEB749B0D22646DB1AXXXX; Example to create a login from SID.


1 Answers

You can also user the Azure User Management console - AUMC to manage the Logins and Users.

It's a open source project available on codeplex AUMC.codeplex.com

Project Description

Azure User Management Console - AUMC is a User Graphic Interface (GUI) that manages the users and logins of an Azure SQL database. The tool is simply converting your action into T-SQL commands and execute them on the Azure SQL Database.

A quick simple tool with a user interface!

Enjoy!

like image 57
Frank Boucher Avatar answered Sep 23 '22 08:09

Frank Boucher