Solved

SQL 2012 Replication

Posted on 2013-11-19
12
366 Views
Last Modified: 2013-11-20
i have a merge publication and a subscription  that i just created the tables and views on the local subscription db never downloaded when i right click on properties on the subscription under local subscriptions it says the agent has never been run .. when i check the replication monitor on the publication server it shows the connection as unknown what am i missing?
0
Comment
Question by:samjud
  • 6
  • 6
12 Comments
 
LVL 26

Expert Comment

by:Zberteoc
ID: 39663258
How did you create the publication ans subscription?

What is the status of the distribution agents for the subscription under the  Agents tab  in the replication monitor?
0
 

Author Comment

by:samjud
ID: 39663929
i created the publication and subscription using the wizard.

i see just 1 agent  under job is says snapshot agent and under status it says completed.
0
 
LVL 26

Expert Comment

by:Zberteoc
ID: 39663994
That is the snapshot. You need to look for the distribution agent. In the left panel you expand the publication node and under it you will see the subscription. Select the subscription and then look in the right panel for Agent tab. Under that tab you will see the distribution agent status.
0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 

Author Comment

by:samjud
ID: 39664014
Ok i see it now under distributer agent there is nothing listed under merge agent it says under status never started
0
 
LVL 26

Expert Comment

by:Zberteoc
ID: 39664089
Right click on it and then on Start agent.
0
 

Author Comment

by:samjud
ID: 39664111
thats the first thing i tried ... :) i cannot click on start agent its "greyed" out
0
 
LVL 26

Expert Comment

by:Zberteoc
ID: 39664137
Right click on it and then on View History.
0
 

Author Comment

by:samjud
ID: 39664145
there is no view history there is view details when i click on that is shows me the last 100 synchronizations and thats empty.
0
 
LVL 26

Expert Comment

by:Zberteoc
ID: 39664157
Go in the SQL Server agent and start the agent from there. To find the agent name right click on the agent in Repl Monitor and then on View Agent Profile. In the windows that opens ypu will see the complete name on the top frame.
0
 

Author Comment

by:samjud
ID: 39664194
i see the agent name i checked on the publication server and all SQL services are started.. i guess i am not sure what you mean by "Go in the SQL Server agent and start the agent from there. "
0
 
LVL 26

Accepted Solution

by:
Zberteoc earned 500 total points
ID: 39664226
The merge agent is nothing else but a SQL Server Job. All the jobs are under the SQL Server Agent. In Management Studio you expand the server node and at the bottom you will see the SQL Server Agent. You will have to look on the server that you chose to be the distribution server, could be the publisher(push), the subscriber(pull) or on a third server.

Expand the SQL ServerAgent node than the Jobs node and somewhere you will find the actual merge/distribution agent which will have the same name as found in the Replication Monitor through the method I described in my previous post. Once you find it you right click on it and then Start Job at Step... and then choose the first step (actually is default) and then on Start. If it fails you will right click on the agent again and then on View History. Make sure you expand the last (top) execution entry and then choose the step that failed and then look down in the details. If it doesn't fail then you're good.
0
 

Author Comment

by:samjud
ID: 39664354
ok this job was on the subscription server i started as step and it replicated thx for ur help :)
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

832 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