Could not obtain information about Windows NT group user

后端 未结 9 922
一生所求
一生所求 2020-12-30 19:24

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-

9条回答
  •  执笔经年
    2020-12-30 19:40

    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.

提交回复
热议问题