Criar e configurar a instância de destino do Cloud SQL para SQL Server
Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
Para migrações homogêneas do SQL Server para o Cloud SQL,
o Database Migration Service exige que você primeiro crie e configure a
instância de destino do Cloud SQL. Siga as etapas abaixo:
Crie e configure um usuário de migração dedicado na instância de destino do Cloud SQL. Esse usuário é necessário para que o Database Migration Service se conecte à instância de destino e monitore seus dados. Você precisa informar
o nome de usuário e a senha dessa conta em uma fase posterior, quando
criar o perfil de conexão de destino.
Crie a conta de usuário do banco de dados na instância de destino do Cloud SQL para SQL Server. Consulte
Criar e gerenciar usuários na documentação do Cloud SQL.
Atribua os seguintes privilégios à conta de usuário:
Para o SQL Server 2019: VIEW ANY DEFINITION e VIEW SERVER STATE
Para versões mais recentes: VIEW ANY DEFINITION e VIEW SERVER PERFORMANCE STATE
Conceda as permissões do Cloud Storage à conta de serviço associada
à instância de destino. Essa conta é criada após a criação da
instância de destino.
Verifique o endereço de e-mail associado a essa conta de serviço na
página de detalhes da instância do Cloud SQL. Consulte
Conferir informações da instância na documentação do Cloud SQL.
Adicione as permissões storage.objects.get e storage.objects.list
à conta de serviço. Para saber como gerenciar o acesso
com o Identity and Access Management, consulte
Gerenciar o acesso a projetos, pastas e organizações
na documentação do IAM.
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Informações incorretas ou exemplo de código","incorrectInformationOrSampleCode","thumb-down"],["Não contém as informações/amostras de que eu preciso","missingTheInformationSamplesINeed","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2025-08-18 UTC."],[[["\u003cp\u003eDatabase Migration Service requires a pre-configured Cloud SQL destination instance for homogeneous SQL Server migrations.\u003c/p\u003e\n"],["\u003cp\u003eYou must create a dedicated migration user within the destination Cloud SQL instance with specific privileges: \u003ccode\u003eVIEW ANY DEFINITION\u003c/code\u003e and \u003ccode\u003eVIEW SERVER STATE\u003c/code\u003e for SQL Server 2019, or \u003ccode\u003eVIEW ANY DEFINITION\u003c/code\u003e and \u003ccode\u003eVIEW SERVER PERFORMANCE STATE\u003c/code\u003e for later versions.\u003c/p\u003e\n"],["\u003cp\u003eGrant the service account associated with your destination instance \u003ccode\u003estorage.objects.get\u003c/code\u003e, and \u003ccode\u003estorage.objects.list\u003c/code\u003e permissions.\u003c/p\u003e\n"],["\u003cp\u003eThe destination instance must be configured with sufficient compute and memory resources to meet migration demands, while also following the requirements listed in the known limitations.\u003c/p\u003e\n"]]],[],null,["# Create and configure the Cloud SQL for SQL Server destination instance\n\nFor homogeneous SQL Server migrations to Cloud SQL,\nDatabase Migration Service requires that you first create and configure your\nCloud SQL destination instance. Perform the following steps:\n\n1. [Create your destination instance](/sql/docs/sqlserver/create-instance). Make sure you use enough compute\n and memory resources to cover your migration needs and follow the requirements\n listed in\n [known limitations](/database-migration/docs/sqlserver/known-limitations).\n\n2. Create and configure a dedicated migration user in your destination\n Cloud SQL instance. This user is required for Database Migration Service to successfully\n connect to your destination instance and monitor your data. You need to provide\n the username and password for this account at a later stage, when you\n [create the destination connection profile](/database-migration/docs/sqlserver/create-destination-connection-profile).\n\n 1. Create the database user account in your destination Cloud SQL for SQL Server\n instance. See\n [Create and manage users](/sql/docs/sqlserver/create-manage-users) in the Cloud SQL documentation.\n\n 2. Assign the following privileges to the user account:\n\n - For SQL Server 2019: `VIEW ANY DEFINITION` and `VIEW SERVER STATE`\n - For later versions: `VIEW ANY DEFINITION` and `VIEW SERVER PERFORMANCE STATE`\n\n For information on how to assign privileges to user accounts, see\n [Changing permissions for users](/sql/docs/sqlserver/users#changing-permissions) in the Cloud SQL documentation.\n3. Grant the Cloud Storage permissions to the service account associated\n with your destination instance. This account is created after you create the\n destination instance.\n\n 1. Check the email address associated with this service account on the\n Cloud SQL instance detail page. See\n [View instance information](/sql/docs/sqlserver/instance-info#service_account) in the Cloud SQL documentation.\n\n 2. Add the `storage.objects.get`, and `storage.objects.list`\n permissions to the service account. For information on how to manage access\n with Identity and Access Management, see\n [Manage access to projects, folders, and organizations](/iam/docs/granting-changing-revoking-access)\n in the IAM documentation.\n\nWhat's next?\n------------\n\n- [Create a migration job](/database-migration/docs/sqlserver/create-migration-job)"]]