GRANT ADMINISTER Database Bulk Operations – Incorrect syntax near ADMINISTER

The question:

I am trying to import a bacpac file to my SQL Server Express 2016.
An exception is thrown during the import with

GRANT ADMINISTER Database Bulk Operations TO [MyUser];

Returns:

Incorrect syntax near ‘ADMINISTER’.

I am running the import as the sa user. Later when I try to run the SQL line directly, the same error is thrown. What can I do to resolve this?

Update: SQL Server Express 2019 throws “is not supported on this version of SQL Server” on the same line

Documentation suggests that the syntax is correct on both 2016 and 2019 without mentioning the exact applicable edition (Windows or Linux, Express or others)

The Solutions:

Below are the methods you can try. The first solution is probably the best. Try others if the first one doesn’t work. Senior developers aren’t just copying/pasting – they read the methods carefully & apply them wisely to each case.

Method 1

The documentation says “ADMINISTER DATABASE BULK OPERATIONS Applies to: SQL Database.”

In the context of the docs “SQL Database” is Azure SQL DB. Not the SQL Server running on Windows/Linux. “SQL Database” always means Azure SQL Database. The docs simply use both interchangeably.


All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

Leave a Comment