Re: SqlExpress Merge Agent slow Profiles & one way Rep
- From: "Hilary Cotter" <hilary.cotter@xxxxxxxxx>
- Date: Tue, 24 Jun 2008 08:11:05 -0400
The profiles are kept on the publisher. The slow agent profile is ideal for low bandwitdth links between your publisher and tthe subscriber.
SQL Express does not have an msdb database which your code is looking for on the subscriber. This is why it won't work.
"Gatecrasher" <Gatecrasher@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:1EF0C287-68F3-4213-B32A-834150566D65@xxxxxxxxxxxxxxxx
I want to make this SQLExpress clients Agent use the "Slow connection"
profile. Setting slow profile on the server I assume does nothing for me at
all??? I assume that because the Agent runs on the client. Correct?
So does a SQLExpress install have "agent profiles" given it doesn't have a
real Agent at all?
i thought I would try something obvious
AgentProfile profile = new AgentProfile();
profile.Name = "My Profile";
profile.AgentType = AgentType.MergeAgents;
profile.ConnectionContext = conn;
profile.Create();
MergeSynchronizationAgent agent = subscription.SynchronizationAgent;
profile.AddParameter("-DownloadGenerationsPerBatch", "1");
agent.ProfileName = "My Profile";
but this fails because the profile.Create() dies with
_innerException = {"Invalid object name 'msdb..MSagent_profiles'."}
Required table missing
Am i just missing the point here that SQLExpress does not allow you to set
values on the Agent?? If that is the case how can I change my batch size for
slow connections?
If I google this
MergeSynchronizationAgent.DownloadGenerationsPerBatch
I get a new property for SQL 2008 but it only shows up for MSDN in the
German site!!
I installed SqlExpress 2008 and after a bit of messing around, the
SqlServer.Replication.DLL is not in the GAC when it used to be, this new
Property exists.
I wonder if it will find its way back into 2005, without it I am stumped.
Also discovered cannot Merge Replicate from 2005 Publisher to 2008
Subscriber, not allowed.
Any ideas?
.
- Follow-Ups:
- Re: SqlExpress Merge Agent slow Profiles & one way Rep
- From: Gatecrasher
- Re: SqlExpress Merge Agent slow Profiles & one way Rep
- Prev by Date: Re: replication issues
- Next by Date: Re: Shared or Independant Distribution Agent?
- Previous by thread: SQL 2000 and MSDE/Express/Compact edition..
- Next by thread: Re: SqlExpress Merge Agent slow Profiles & one way Rep
- Index(es):
Relevant Pages
|