I've already configured the permissions in the DEV database for using query notifications in SQL Server 2005 with stored procedures.
The issue is that it works with my user account when running the web site from my local machine, and it does not work when the code was moved to the DEV web server.
The DBA verified my user has the 'sa' permissions in the DEV database, but the service account running the site from the DEV web server doesn't have these permissions, and it is not possible to assign this permission in QA or PROD. He also temporarily set the 'sa' permissions to the user, and the query notification works.
The error message the database is returning is:
An exception occurred while enqueueing a message in the target queue. Error: 15404, State: 19. Could not obtain information about Windows NT group/user 'DOMAIN\WebServiceAccount', error code 0x5.
Some things I've tried:
Running xp_logininfo 'DOMAIN\WebServiceAccount'
returns the same error:
Could not obtain information about Windows NT group/usermessage
Running xp_logininfo 'DOMAIN\MyUserAccount'
returns the same error message for my user:
Could not obtain information about Windows NT group/user
The possible solutions I've found so far are:
Unfortunately, there's no way I can test all of this in the Active Directory we have, because of restrictions for developers, so I want to ask if anyone knows what exact permission we have to grant to the user running the SQL Server Service in Active Directory, for it to be able to query for other user's accounts?
Thank you very much in advance!
Our Systems guy did the following steps, which worked: