Microsoft SQL Data Sync Agent :: Failed to grant 'logon as a service' rights to user

Francesco Mantovani 21 Reputation points
2022-12-02T13:32:51.913+00:00

I'm trying to install Microsoft SQL Data Sync Agent.

I tried to use the users:

But I receive the error:

266662-user.png

I followed this guide but nothing works.

Azure SQL Database
{count} votes

4 answers

Sort by: Most helpful
  1. Bjoern Peters 8,896 Reputation points
    2022-12-02T14:15:52.23+00:00

    Hi @Francesco Mantovani

    "Logon as a service" permissions are Windows permission and not SQL permission, so to grant this, your user account must have the right to grant this permission at an OS level.

    If this workstation is your machine... then you are responsible for those permissions on your own, BUT if this machine is your work environment, your employers IT department is responsible for granting those permissions to your user... maybe they won't allow every user in their domain to grant that permission...

    So I would suggest - if it is your work env. - ask your admin team to assist you with this... maybe it is an easy thing like "run as administrator," or they have to grant you additional permission to run/install that application.

    0 comments No comments

  2. Francesco Mantovani 1 Reputation point
    2022-12-02T20:32:41.763+00:00

    I tried with my home computer and the error is this:

    266700-see.png

    I have added the user to the Local Security Policy. This is the user and it's the same I use on SSMS:

    266725-image.png

    is PCname\Username like stated in many blogs online.
    As far as I can see this product never received much love from Microsoft.

    • There is no user/password check and you can keep going in the installation. Only later you are prompted that the user cannot go on
    • Since Windows 95 we are use to install .exe without choosing a user. Why do we have to do it now?
    • The program should propose Windows Authentication and SQL Server authentication. Instead it asks to drop a name without telling what user you are supposed to enter. Then few steps later you are prompted that there is something wrong with your user but you don't know where.

    Overall the user experience is not good.
    I get it, I'm not installing Minecraft, but I'm use to have this problem while installing Oracle/DB2 stuff and it's a pity that I'm experiencing this with Microsoft.

    0 comments No comments

  3. Francesco Mantovani 21 Reputation points
    2022-12-05T08:45:31.577+00:00

    Take for example the Microsoft Assessment and Planning (MAP) Toolkit.

    This tool came out around 2012 and you can choose what login to use.

    That's why I mean that this Microsoft SQL Data Sync Agent in comparison it looks half baked.

    0 comments No comments

  4. Francesco Mantovani 21 Reputation points
    2022-12-30T09:48:08.397+00:00

    When I say that Microsoft SQL Data Sync Agent is an unused tool, I really mean it. Even Brent Ozar never used it .

    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.