Create a User in Azure SQL Database

  • I need to create a user in Azure SQL Database and map the user to a specific database.

    does anyone have the syntax to make this happen?

    The GUI is restricted and you cant do it as you would in SSMS on-prem as you cant view the properties.

    Also I am after a decent script to check the mappings specifically for an Azure SQL DB.

    Thanks

     

     

  • It would depend on what type of user you are creating - contained? Mapped to a login? There are different options. You  can find examples of the different types in the following article:

    Adding Users to Azure SQL Databases

    Sue

  • Mapped to a login.

     

  • SQL authentication or Windows authentication?

    Your Azure subscription is tied to your Azure AD/On-Prem synced service for AD auth etc to do Windows?

    If your integrating with AzureAD you want to look at the CREATE LOGIN FROM EXTERNAL PROVIDER syntax.

    For SQL based, the link Sue posted with give you the code to create a SQL authenticated login and user.

  • This was removed by the editor as SPAM

  • This was removed by the editor as SPAM

  • This was removed by the editor as SPAM

  • This was removed by the editor as SPAM

  • This was removed by the editor as SPAM

  • This was removed by the editor as SPAM

  • This was removed by the editor as SPAM

  • If you're integrating with AzureAD you want to look at the CREATE LOGIN FROM EXTERNAL PROVIDER syntax.

  • This was removed by the editor as SPAM

Viewing 13 posts - 1 through 12 (of 12 total)

You must be logged in to reply to this topic. Login to reply