Transfer SQL server Logins to Azure SQL managed Instance

Thyagarajulu B M 121 Reputation points
2022-12-20T14:26:53.813+00:00

Please provide the procedures to Transfer On premises SQL server logins to Azure SQL Managed Instance.

Azure SQL Database
SQL Server Other
0 comments No comments
{count} votes

Accepted answer
  1. GeethaThatipatri-MSFT 29,542 Reputation points Microsoft Employee Moderator
    2022-12-22T16:42:30.967+00:00

    Hi, @Thyagarajulu B M Thanks for the ask and for using the Microsoft Q&A platform.
    Have you tried this document https://learn.microsoft.com/en-us/troubleshoot/sql/security/transfer-logins-passwords-between-instances.

    Regards
    Geetha

    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Bjoern Peters 8,921 Reputation points
    2022-12-20T14:35:09.403+00:00

    Hi @Thyagarajulu B M

    My approach would be - to export all existing logins from on-premise to a *.sql file, clean that file of unwanted logins, and then execute it on your MI.

    https://docs.dbatools.io/Export-DbaLogin

    I hope my answer is helpful to you,

    Your
    Bjoern Peters

    If the reply was helpful, please upvote and/or accept it as an answer, as this helps others in the community with similar questions. Thanks!

    0 comments No comments

  2. PandaPan-MSFT 1,931 Reputation points
    2022-12-21T01:37:31.427+00:00
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.