views:

648

answers:

1

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?

+2  A: 

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

Remus Rusanu
@Remus Rusanu:The agent is running under a local machine account as MyWorkstation\SqlServerAccount
Raj More
@Raj: Actually since is the SQL Server itself that is connecting to the AD, you need to change the account under which SQL is running. It has to be an account AD will authenticate, like a domain account or the NETWORK SERVICE account(provided the machine is joined to the domain). SSMS or EM can have an option to change the service account.
Remus Rusanu