?
Solved

SQL 2008 Transactional replication and agent accounts

Posted on 2013-12-23
2
Medium Priority
?
683 Views
Last Modified: 2013-12-30
I'm having problem setting up transactional replication.
Once I set up publication, it seems that it generates snapshot file successfully. But then when I create subscription from another server, both publication and subscription in Replication monitor shows 'Retrying failed command'.
I think this is something has to do with the accounts I selected when I create publication and subscription.

What I did is, I created a new SQL account, then gave db_owner and publication for the database and make it as sys_admin then I set up publication with it.

Then on subscriber, I created another SQL account, the same name I created in publisher and gave same permissions for login and database mappings.

When I open Repl mon, it shows the account I use still can't make snapshot agent to go alive. I wonder how it successfully created the initial snapshot, then.

What are the proper account setup for replication agents on both publication and subscriber?
0
Comment
Question by:crcsupport
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Author Comment

by:crcsupport
ID: 39737157
I'm trying to make transactional replication from SQL 2008 STD to SQL 2012 Express. There's
0
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 2000 total points
ID: 39737921
The specifics of the security requirements for each agent involved in replication are documented here: http://technet.microsoft.com/en-us/library/ms151868(v=sql.105).aspx

But basically they generally need to be Windows accounts, rather than SQL accounts, have at least db_owner privileges, and the subscriber will also need read permissions on the directory where the snapshot resides.
0

Featured Post

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
Windocks is an independent port of Docker's open source to Windows.   This article introduces the use of SQL Server in containers, with integrated support of SQL Server database cloning.
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question