Ask a questionAsk a question
 

AnswerCould not execute sp_replcmds

  • Thursday, November 05, 2009 10:39 PMSQLTulip2 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Hello,

     

    I am setting up transactional replication on a SQL 2008 publisher and use a separate SQL 2008 distributor.  Reviewing Replication Monitor, I see the following errors:

     

    Error messages:

    ·          The process could not execute 'sp_replcmds' on 'ServerName'. (Source: MSSQL_REPL, Error number: MSSQL_REPL20011)
    Get help: http://help/MSSQL_REPL20011

    ·          Could not obtain information about Windows NT group/user 'domain\username', error code 0x2. (Source: MSSQLServer, Error number: 15404)
    Get help: http://help/15404

    ·          The process could not execute 'sp_replcmds' on 'ServerName'. (Source: MSSQL_REPL, Error number: MSSQL_REPL22037)
    Get help: http://help/MSSQL_REPL22037

     

    I attempt to execute sp_replcmds on the publisher via SSMS and get the highlighted error back.  So I don't think this has anything to do with the Log Agent job permissions.  It's happening on the distributor AND publisher.

     

    My issue is that the user “domain\username” should not be anywhere on our servers, though it is a valid login in the domain.  I looked at the groups of which this user is a member and the groups is not any of our security groups on the SQL Server.  I checked all the local groups on the server and this user isn’t a member of any group nor is any group he’s a member of a member of any local group.  So I’m pretty baffled with what’s going on.  I dropped and re-created the replication streams a couple times and this error comes up each time.  What's also interesting is that when I delete the publication, I get that same highlighted error.

    Does anyone know what’s going on?  I have since upgraded SQL 2008 to SP1 and the error persists.

    Thanks so much,
    Melanie

Answers

All Replies