Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not obtain information about Windows NT group user

I am creating a SQL Server Replication using a script. When I try to execute

The job failed. Unable to determine if the owner (STAR\moorer7) of job L3BPT2M-Atlas-14 has server access (reason: Could not obtain information about Windows NT group/user 'STAR\moorer7', error code 0x5. [SQLSTATE 42000] (Error 15404)).

This is a job created by a script that defines replication.

How do I debug this?

like image 618
Raj More Avatar asked Aug 05 '09 17:08

Raj More


People also ask

Can not obtain information about Windows NT group user?

The most likely cause for this is a misconfiguration of the service account settings in SQL Server. To be more specific, it is very likely that SQL Server is configured to run as a local user who has no access to Active Directory at all.

Could not obtain information about Windows NT group user error code 0x5 Sqlstate 42000?

Error 0x5 means access denied. Try to changing the owner of the jobs to the sa account, on the properties of the job. If the above does no help, please change the service account for the SQL Server agent service to account with proper permissions. Hope this helps.

Could not obtain information about Windows NT group user error code 0x5 Sqlstate 42000 ConnIsLoginSysAdmin?

Could not obtain information about Windows NT group/user 'domainuser', error code 0x5. [SQLSTATE 42000] (Error 15404) (ConnIsLoginSysAdmin) The solution to this is to add the SQL Server service account to the 'BUILTINWindows Authorization Access Group' on your DC.


2 Answers

Active Directory is refusing access to your SQL Agent. The Agent should be running under an account that is recognized by STAR domain controller.

like image 186
Remus Rusanu Avatar answered Oct 05 '22 14:10

Remus Rusanu


We encountered similar errors in a testing environment on a virtual machine. If the machine name changes due to VM cloning from a template, you can get this error.

If the computer name changed from OLD to NEW.

A job uses this stored procedure:

msdb.dbo.sp_sqlagent_has_server_access @login_name = 'OLD\Administrator' 

Which uses this one:

EXECUTE master.dbo.xp_logininfo 'OLD\Administrator' 

Which gives this SQL error 15404

select text from sys.messages where message_id = 15404; Could not obtain information about Windows NT group/user '%ls', error code %#lx. 

Which I guess is correct, under the circumstances. We added a script to the VM cloning/deployment process that re-creates the SQL login.

like image 28
Craig Celeste Avatar answered Oct 05 '22 13:10

Craig Celeste