I am creating a SQL Server 2005 Replication snapshot publication for a push subscription. The distributor and publisher are on the same server. I am able to successfully create the publication with stored procedure execution:
EXECsp_addpublication @publication='publication', @repl_freq='snapshot', @retention = 0, @status ='active', @independent_agent ='TRUE'
But when I create the snapshot agent with the following execution:
EXECsp_addpublication_snapshot @publication='publication', @job_login='domain\account', @job_password='xxxxx'
I get the following error message:
Msg 3930, Level 16, State 1, Procedure sp_grant_login_to_proxy, Line 70
The current transaction cannot be committed and cannot support operations that write to the log file. Roll back the transaction.
Msg 3931, Level 16, State 1, Procedure sp_MSrepladdproxyaccount, Line 129
The current transaction cannot be committed and cannot be rolled back to a savepoint. Roll back the entire transaction.
I have set the publication database to simple recovery matter and I get the same error. I have also verified the job account is a member of database role db_owner on the publication and distribution databases. I get the same error when I use the New Publication Wizard.
Any idea what I am doing wrong? Any help is appreciated.