简体   繁体   中英

Data Migration Assistant SQL Server to Azure VIEW Server State

I have a SQL Server 2012 database that I want to migrate to Azure SQL using the Data Migration Assistant v5.2. When I get to the Select Target section, I enter a SQL Authentication account that is in the dbmanager group. I get an error: VIEW SERVER STATE permission was denied on object 'server', database 'master'. The user does not have permission to perform this action. And can go no further. How do I get past this?

Thank you, Dep

To run an assessment(DMA), you have to be a member of the SQL Server sysadmin role.

Please ref: https://learn.microsoft.com/en-us/sql/dma/dma-overview?view=sql-server-ver15#prerequisites

There are two workarounds we could found before we migrate the on-premise SQL server to Azure SQL:

Workaround 1:

From the SQL Server Management Studio via statement:

  1. Connect to the on-premise SQL instance
  2. Select New Query
  3. Use the following statement
    • GRANT VIEW SERVER STATE TO "AccountName"

Workaround 2:

Update your SSMS to a new version.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM