Visual Studio 2019 - SQL Server Database Project - Error SQL70596 while building "GRANT Administer Database Bulk Operations" command

Cristina Santana Souza 61 Reputation points
2021-09-23T18:20:12.387+00:00

Hello,

I created a SQL Server Database project and imported a SQL Database. However, when building the project, the error message SQL70596: Cannot determine securable object class from permission Administer Database Bulk Operations is displayed, as shown in the print below.

134679-image.png

I connected to the database using the server's administrator user, that is, he has permission to execute the command. Does anyone know how to solve this problem?

Best regards,
Cristina

Azure SQL Database
Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
4,417 questions
0 comments No comments
{count} votes

Accepted answer
  1. KalyanChanumolu-MSFT 8,316 Reputation points
    2021-10-04T07:23:34.053+00:00

    @Cristina Santana Souza Our sincere apologies for the inconvenience you are having with Visual Studio.

    Request you to kindly report this issue so that we can fix it in an upcoming release.

    137328-image.png


2 additional answers

Sort by: Most helpful
  1. Alberto Morillo 32,896 Reputation points MVP
    2021-09-23T20:43:48.64+00:00

    Please try to connect to the database using SQL Server Management Studio (SSMS) and try this:

    GRANT ADMINISTER DATABASE BULK OPERATIONS TO [pipeline];
    

    Maybe try to remove that permission from the script in Visual Studio and run it on the Azure SQL Database using SSMS.

    The issue is not with the user you are connected using VS but with the pipeline login.


  2. Alberto Portoles (admin) 1 Reputation point
    2022-11-22T16:25:28.287+00:00

    The same in Az Data Studio 1.40
    (the solution would be rewrite to ALTER SERVER ROLE [BULKADMIN] ADD MEMBER . . . but then will fail for the alter :) )

    263108-image.png

    0 comments No comments