Solved

SQL 2012 Replication

Posted on 2013-11-19
12
365 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
 

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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
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

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

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

JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

919 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now