Wednesday, March 28, 2012
Merge Replication, going back to primary Publiser
following steps in
http://support.microsoft.com/default...b;en-us;321176 to set this
up. We had to turn off the PublisherA server because of the hurricanes and
the PublisherB and SubscriberA, B and C are being replicated between
themselves. Now I have PublisherA back and on-line and the replication is
stopped in PubA. To have PubA back as primary publisher again, what do I
need to do? just start synch from PublisherA and the data will be replicated
from PubA to PubB and Subscribers A,B and C and viceversa? or do I need to
do some aditional step?
Thanks in advance
Jennyfer
change the agents to point back to publisher A. remove the -SyncToAlternate
parameter.
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com
"Jennyfer Barco" <pdwhitt@.nospam.wdsinc.com> wrote in message
news:OuvlPsX4FHA.2552@.TK2MSFTNGP10.phx.gbl...
> Hello this is a simple question. I have merge replication and I followed
the
> following steps in
> http://support.microsoft.com/default...b;en-us;321176 to set this
> up. We had to turn off the PublisherA server because of the hurricanes and
> the PublisherB and SubscriberA, B and C are being replicated between
> themselves. Now I have PublisherA back and on-line and the replication is
> stopped in PubA. To have PubA back as primary publisher again, what do I
> need to do? just start synch from PublisherA and the data will be
replicated
> from PubA to PubB and Subscribers A,B and C and viceversa? or do I need to
> do some aditional step?
> Thanks in advance
> Jennyfer
>
|||When doing this I lost many records in some tables and some tables where
almost gone in the publisher A. Now I'm bringing the missing record from
Publisher B and it takes to much time because when inserting these records
in publisher A it's trying to update them in Publisher B and subscribers.
How can I improve this, at this rate it will take me weeks to have the
databases on sync. They're thousands of records gone and why did this
happen, he just deleted important records.
thanks in advance
Jennyfer
"Hilary Cotter" <hilary.cotter@.gmail.com> wrote in message
news:Oj9rRxb4FHA.3444@.tk2msftngp13.phx.gbl...
> change the agents to point back to publisher A. remove
> the -SyncToAlternate
> parameter.
> --
> Hilary Cotter
> Looking for a SQL Server replication book?
> http://www.nwsu.com/0974973602.html
> Looking for a FAQ on Indexing Services/SQL FTS
> http://www.indexserverfaq.com
> "Jennyfer Barco" <pdwhitt@.nospam.wdsinc.com> wrote in message
> news:OuvlPsX4FHA.2552@.TK2MSFTNGP10.phx.gbl...
> the
> replicated
>
|||Hello I'm sending this again since I didn't have any answer. My important
question is why thousands of records are gone? Why when switching I lost
many records? And 2 small tables that have around 500 records and are being
replicated and are not transactional records are gone too. They were gone
when trying to swicth, and they had records and those are very important
tables like stores and users tables.
Thanks
"Jennyfer Barco" <pdwhitt@.nospam.wdsinc.com> wrote in message
news:uGjsuKf5FHA.3588@.TK2MSFTNGP15.phx.gbl...
> When doing this I lost many records in some tables and some tables where
> almost gone in the publisher A. Now I'm bringing the missing record from
> Publisher B and it takes to much time because when inserting these records
> in publisher A it's trying to update them in Publisher B and subscribers.
> How can I improve this, at this rate it will take me weeks to have the
> databases on sync. They're thousands of records gone and why did this
> happen, he just deleted important records.
> thanks in advance
> Jennyfer
> "Hilary Cotter" <hilary.cotter@.gmail.com> wrote in message
> news:Oj9rRxb4FHA.3444@.tk2msftngp13.phx.gbl...
>
merge replication without rowguid
I have a database that has Primary Key constraints on every table. Yet
when I run the replication wizard and try to configure merge
replication the wizard notifies me that it will create a rowguid on
the tables even though they already have a primary key.
anybody know how to avoid the rowguid column from being created?
regards,
Doron
what is the big deal with having rowguid column?
I am running the replication for 3 years with that column without any
prolem!
"DoronA" <doronal@.msn.com> wrote in message
news:OMPe$RgwEHA.824@.TK2MSFTNGP11.phx.gbl...
> hi,
> I have a database that has Primary Key constraints on every table. Yet
> when I run the replication wizard and try to configure merge
> replication the wizard notifies me that it will create a rowguid on
> the tables even though they already have a primary key.
> anybody know how to avoid the rowguid column from being created?
> regards,
> Doron
>
|||If your primary key is a unqueidentifier, then you can mark it as the
RowGuid column using ALTER TABLE, e.g.
ALTER TABLE dbo.MyTable
ALTER COLUMN MyPK ADD ROWGUIDCOL
Otherwise, you have to have a separate RowGuid column, as it's how
replication tracks the global identity of rows.
Paul
"DoronA" <doronal@.msn.com> wrote in message
news:OMPe$RgwEHA.824@.TK2MSFTNGP11t .phx.gbl...
> hi,
> I have a database that has Primary Key constraints on every table. Yet
> when I run the replication wizard and try to configure merge
> replication the wizard notifies me that it will create a rowguid on
> the tables even though they already have a primary key.
> anybody know how to avoid the rowguid column from being created?
> regards,
> Doron
>
merge replication without rowguid
I have a database that has Primary Key constraints on every table. Yet
when I run the replication wizard and try to configure merge
replication the wizard notifies me that it will create a rowguid on
the tables even though they already have a primary key.
anybody know how to avoid the rowguid column from being created?
regards,
Dorondoron_almog@.msn.com (Doron) wrote in message news:<995517bc.0411031605.30cf6318@.posting.google.com>...
> hi,
> I have a database that has Primary Key constraints on every table. Yet
> when I run the replication wizard and try to configure merge
> replication the wizard notifies me that it will create a rowguid on
> the tables even though they already have a primary key.
> anybody know how to avoid the rowguid column from being created?
> regards,
> Doron
Unless all of the replicas are read-only, how would you prevent the
same PK being allocated to two different rows in two different
replicas?
The solution you are being offered is to have rowguid be the primary
key - what's your proposed solution to the problem?
Monday, March 26, 2012
Merge replication UNIQUEIDENTIFIER Column?
I am using SQL 2005 sp1 to setup Merge replication for PDA access.
i created my Primary Key column a GUID using NEWID() as the default value.
When the snapshot was created it still went and added anothe GUID to all my
tables called rowguid.
i thought it was suposed to use the existing Unique GUID column before
creating a new one?
thanks for you advice. i hope i have the corect groups here?
inkquote:
If a published table does not have a uniqueidentifier column with the
ROWGUIDCOL property and a unique index, replication adds one
So, check for the rowguidcol property...
MC
"iKiLL" <iKill@.NotMyEmail.com> wrote in message
news:uS1$gVbWHHA.4796@.TK2MSFTNGP05.phx.gbl...
> Hi all,
> I am using SQL 2005 sp1 to setup Merge replication for PDA access.
> i created my Primary Key column a GUID using NEWID() as the default value.
> When the snapshot was created it still went and added anothe GUID to all
> my tables called rowguid.
> i thought it was suposed to use the existing Unique GUID column before
> creating a new one?
> thanks for you advice. i hope i have the corect groups here?
> ink
>|||Sorry my point was that i had created one and SQL2005 still created its own.
Now from what i can tell i think i have figgerd it out.
The behaviour i was expecting was how SQL 2000 handled the row GUID column
for snapshots.
i am using SQL 2005.
it seems that there is in fact a property of the column called RowGuid that
must be set to Yes before creating the first snapshot.
Then SQL2005 will use that column instead of creating it's own. Just setting
the data type and making it the primary key is not enough.
Thanks for your input Marko.
"MC" <marko.culoNOSPAM@.gmail.com> wrote in message
news:eruu6p$pcf$1@.ss408.t-com.hr...
> quote:
> If a published table does not have a uniqueidentifier column with the
> ROWGUIDCOL property and a unique index, replication adds one
>
> So, check for the rowguidcol property...
>
> MC
>
> "iKiLL" <iKill@.NotMyEmail.com> wrote in message
> news:uS1$gVbWHHA.4796@.TK2MSFTNGP05.phx.gbl...
>|||Yes, you need RowGuid property. Point is, you can have any number of
uniqueidentifiers in a table, but one of them needs to have this property
set. Since SQL Server doesnt want to guess which one would you like to have
as the 'main' GUID in a table, it adds another with rowguid property set.
Offcourse, if you allready have one it doesnt need to add it.
MC
"iKiLL" <iKill@.NotMyEmail.com> wrote in message
news:e2jo3%23bWHHA.600@.TK2MSFTNGP05.phx.gbl...
> Sorry my point was that i had created one and SQL2005 still created its
> own.
> Now from what i can tell i think i have figgerd it out.
> The behaviour i was expecting was how SQL 2000 handled the row GUID column
> for snapshots.
> i am using SQL 2005.
> it seems that there is in fact a property of the column called RowGuid
> that must be set to Yes before creating the first snapshot.
> Then SQL2005 will use that column instead of creating it's own. Just
> setting the data type and making it the primary key is not enough.
> Thanks for your input Marko.
>
>
>
> "MC" <marko.culoNOSPAM@.gmail.com> wrote in message
> news:eruu6p$pcf$1@.ss408.t-com.hr...
>
Merge replication UNIQUEIDENTIFIER Column?
I am using SQL 2005 sp1 to setup Merge replication for PDA access.
i created my Primary Key column a GUID using NEWID() as the default value.
When the snapshot was created it still went and added anothe GUID to all my
tables called rowguid.
i thought it was suposed to use the existing Unique GUID column before
creating a new one?
thanks for you advice. i hope i have the corect groups here?
ink
Sorry my point was that i had created one and SQL2005 still created its own.
Now from what i can tell i think i have figgerd it out.
The behaviour i was expecting was how SQL 2000 handled the row GUID column
for snapshots.
i am using SQL 2005.
it seems that there is in fact a property of the column called RowGuid that
must be set to Yes before creating the first snapshot.
Then SQL2005 will use that column instead of creating it's own. Just setting
the data type and making it the primary key is not enough.
Thanks for your input Marko.
"MC" <marko.culoNOSPAM@.gmail.com> wrote in message
news:eruu6p$pcf$1@.ss408.t-com.hr...
> quote:
> If a published table does not have a uniqueidentifier column with the
> ROWGUIDCOL property and a unique index, replication adds one
>
> So, check for the rowguidcol property...
>
> MC
>
> "iKiLL" <iKill@.NotMyEmail.com> wrote in message
> news:uS1$gVbWHHA.4796@.TK2MSFTNGP05.phx.gbl...
>
Wednesday, March 21, 2012
Merge replication Primary Key violations
I have a Merge Replication Problem and I'm not sure how to proceed.
Given the following:
Multiple clients have merge subscriptions to a central Server's DB.
DB contains a table tblUser
tblUser has a Varchar field; UserLoginName, which is Primary Key.
It also has an integer field, UserValue
The replication is configured to resolve to the greater integer value.
Client 1 creates a new User
INSERT tblUser
(UserLoginName, UserValue)
VALUES('Fred',1)
At the same time Client 2 does the same thing, but with a larger value
INSERT tblUSer
(UserLoginName, UserValue)
VALUES('Fred', 2)
One of the inserts will get to the Central Server first.
The other will form a conflict.
A row insert at 'Client2.dbUsers' could not be propagated to 'CentralServer.dbUsers'.
This failure can be caused by a constraint violation.
Violation of PRIMARY KEY constraint 'PK_tblUser_1'. Cannot insert duplicate key in object 'dbo.tblUser'.
So now I have two different value fields and a conflict that cannot be resolved.
Is this fixable?
Do I need to make changes at athe Architechture level?
Hi Brian,
if you need to store both records from all subscribers, You should add a column for client id .So once tables replicates from all subscribers each client has their own id.
Example: if client 1 has the code 100 and client 2 has the code 200
the table at subscriber will be : 100,'Fred',1 (Record comes from client 1)
200,'Fred',1 (Record comes from client 2)
if you need to resolve the conflict and to store 1 record only you should assign priority for each subscriber
For more details check the following URL : http://support.microsoft.com/kb/315514
Regards,
Tarek Ghazali
SQL Server MVP
http://www.sqlmvp.com
|||I need to store only the higher of the two.
If the record already exists and both try to update the record, only the higher is stored, as desired.
But when the record does not exist, both subscribers do an insert, and it does not store only the higher.
Reading all the KB articles on merge replication, it appears that Updates and Inserts are supposed to be resolved the same.
I can't use subscriber priority, as I don't care WHERE the record came from, only the value stored.
Monday, March 12, 2012
merge replication mess with identity fields
keys. One client decided to use merge replication between two sites. They
brought in a consultant who set it up for them. The guy didn't know what
identity fields were. He thought our application filled them in from some
table he couldn't find.
When records turned up missing, the client called us back. Finding that new
records on both ends were getting the same identity, then SQL Server was
keeping the record on one side & throwing out the one of the same number on
the other side, we had them stop editing on the subscriber side until we got
the thing corrected. I thought if all edits were done on the publisher, it
could keep pushing the changes down to the subscriber without causing
problems.
Records are still getting deleted by replication, so the other consultant
has turn it off.
My job is to fix the mess. Identity ranges using NOT FOR REPLICATION are
the answer. But how do I get to that point from where I am? ALTER TABLE
won't work on these tables that are set up to be replicated.
Thanks.
Daniel Wilson
Senior Software Solutions Developer
Embtrak Development Team
http://www.Embtrak.com
DVBrown Company
I don't think that the NFR switch will be the best option for you.
I think you need different seeds on both sides, ie on the publisher has a
seed of 1 and in increment of 2. On the subscriber have a seed of 2 and an
increment of 2.
Check out this link for more info on how to set the NFR property on identity
columns, however I think you are best to rip everything out and start again.
sp configure 'allow updates', 1
go
reconfigure with override
go
update syscolumns set colstat=colstat|0x0008 where colstat & 0x0001 <>
0 and
colstat & 0x0008 =0
go
sp configure 'allow updates', 0
"Daniel Wilson" <d.wilson@.embtrak.com> wrote in message
news:ObsGdn0yEHA.344@.TK2MSFTNGP10.phx.gbl...
> Our application makes extensive use of Identity fields as primary/foreign
> keys. One client decided to use merge replication between two sites. They
> brought in a consultant who set it up for them. The guy didn't know what
> identity fields were. He thought our application filled them in from some
> table he couldn't find.
> When records turned up missing, the client called us back. Finding that
> new
> records on both ends were getting the same identity, then SQL Server was
> keeping the record on one side & throwing out the one of the same number
> on
> the other side, we had them stop editing on the subscriber side until we
> got
> the thing corrected. I thought if all edits were done on the publisher, it
> could keep pushing the changes down to the subscriber without causing
> problems.
> Records are still getting deleted by replication, so the other consultant
> has turn it off.
> My job is to fix the mess. Identity ranges using NOT FOR REPLICATION are
> the answer. But how do I get to that point from where I am? ALTER TABLE
> won't work on these tables that are set up to be replicated.
> Thanks.
> --
> Daniel Wilson
> Senior Software Solutions Developer
> Embtrak Development Team
> http://www.Embtrak.com
> DVBrown Company
>
|||Different seeds sound like a good solution. Since I expect to have 2
subscribers, I think I Iike an increment of 3.
So ... how do I get to that? Even if I delete the existing publication, how
do I get different seeds on the subscriber(s) than on the publisher? The
default action when the initial snapshot is taken is to DROP and recreate
the table ... obviously according to the same schema as that on the
publisher. Am I even looking in the right area?
Thanks.
"Hilary Cotter" <hilary.cotter@.gmail.com> wrote in message
news:uIz8dn1yEHA.3908@.TK2MSFTNGP12.phx.gbl...
> I don't think that the NFR switch will be the best option for you.
> I think you need different seeds on both sides, ie on the publisher has a
> seed of 1 and in increment of 2. On the subscriber have a seed of 2 and an
> increment of 2.
> Check out this link for more info on how to set the NFR property on
identity
> columns, however I think you are best to rip everything out and start
again.[vbcol=seagreen]
> sp configure 'allow updates', 1
> go
> reconfigure with override
> go
> update syscolumns set colstat=colstat|0x0008 where colstat & 0x0001 <>
> 0 and
> colstat & 0x0008 =0
> go
> sp configure 'allow updates', 0
>
>
> "Daniel Wilson" <d.wilson@.embtrak.com> wrote in message
> news:ObsGdn0yEHA.344@.TK2MSFTNGP10.phx.gbl...
primary/foreign[vbcol=seagreen]
They[vbcol=seagreen]
what[vbcol=seagreen]
some[vbcol=seagreen]
it[vbcol=seagreen]
consultant[vbcol=seagreen]
are[vbcol=seagreen]
TABLE
>
|||Create the tables on the publisher the way you want them. Then do the same
on the subscriber. Then sync them up. One option is to use snapshot
replication making sure you use the article property keep the existing table
intact and delete all the data.
When you have finished this, manually change all the identity fields for the
seeds and increments you want. Then do a no sync subscription.
Don't use an increment of 3 as it will overlap with the identity values on
the publisher. Here is an example
Publisher Susbcriber
1 3 - will collide
2 6 - will collide
3
4
5
6
7
You could also try to back up the publication database, and then restore it
on the subscriber. Make the changes to the identity increments/seeds and
then do the nosync subscription.
"Daniel Wilson" <d.wilson@.embtrak.com> wrote in message
news:u3Jyn81yEHA.1412@.tk2msftngp13.phx.gbl...
> Different seeds sound like a good solution. Since I expect to have 2
> subscribers, I think I Iike an increment of 3.
> So ... how do I get to that? Even if I delete the existing publication,
> how
> do I get different seeds on the subscriber(s) than on the publisher? The
> default action when the initial snapshot is taken is to DROP and recreate
> the table ... obviously according to the same schema as that on the
> publisher. Am I even looking in the right area?
>
> Thanks.
> "Hilary Cotter" <hilary.cotter@.gmail.com> wrote in message
> news:uIz8dn1yEHA.3908@.TK2MSFTNGP12.phx.gbl...
> identity
> again.
> primary/foreign
> They
> what
> some
> it
> consultant
> are
> TABLE
>
|||I think it's possible to do it with increment 3, of course if it is set not
only on subscriber but also on publisher. For example setup like that:
Publisher: Seed = 1 Increment = 3
Publisher identity values: 1, 4, 7, 10, 13...(1+n*3)
Subscriber1: Seed = 2 Increment = 3
Subscriber1 identity values: 2, 5, 8, 11, 14...(2+n*3)
Subscriber2: Seed = 3 Increment = 3
Subscriber2 identity values: 3, 6, 9, 12, 15...(3+n*3)
I agree with Hillary that probably the best option is to configure publisher
database (set NFR flags on identity columns, seed 1, increment 3), backup
it, compress, transfer to subscribers locations, restore, change identity
columns seed to 2 and 3, initialize replication with "no sync"
Regards,
Kestutis Adomavicius
Consultant
UAB "Baltic Software Solutions"
"Hilary Cotter" <hilary.cotter@.gmail.com> wrote in message
news:u9s4cD2yEHA.2040@.tk2msftngp13.phx.gbl...
> Create the tables on the publisher the way you want them. Then do the same
> on the subscriber. Then sync them up. One option is to use snapshot
> replication making sure you use the article property keep the existing
table
> intact and delete all the data.
> When you have finished this, manually change all the identity fields for
the
> seeds and increments you want. Then do a no sync subscription.
> Don't use an increment of 3 as it will overlap with the identity values on
> the publisher. Here is an example
> Publisher Susbcriber
> 1 3 - will collide
> 2 6 - will collide
> 3
> 4
> 5
> 6
> 7
> You could also try to back up the publication database, and then restore
it[vbcol=seagreen]
> on the subscriber. Make the changes to the identity increments/seeds and
> then do the nosync subscription.
> "Daniel Wilson" <d.wilson@.embtrak.com> wrote in message
> news:u3Jyn81yEHA.1412@.tk2msftngp13.phx.gbl...
recreate[vbcol=seagreen]
a[vbcol=seagreen]
that[vbcol=seagreen]
publisher,
>
|||This is an excellent solution again Kestutis, but are there 2 or 3 sites? I
thought there were only 2, a publisher and a single subscriber.
Hilary Cotter
Looking for a SQL Server replication book?
Now available for purchase at:
http://www.nwsu.com/0974973602.html
"Kestutis Adomavicius" <kicker.lt@.nospaamm_tut.by> wrote in message
news:uDVOQ%236yEHA.1412@.tk2msftngp13.phx.gbl...
> I think it's possible to do it with increment 3, of course if it is set
not
> only on subscriber but also on publisher. For example setup like that:
> Publisher: Seed = 1 Increment = 3
> Publisher identity values: 1, 4, 7, 10, 13...(1+n*3)
> Subscriber1: Seed = 2 Increment = 3
> Subscriber1 identity values: 2, 5, 8, 11, 14...(2+n*3)
> Subscriber2: Seed = 3 Increment = 3
> Subscriber2 identity values: 3, 6, 9, 12, 15...(3+n*3)
> I agree with Hillary that probably the best option is to configure
publisher[vbcol=seagreen]
> database (set NFR flags on identity columns, seed 1, increment 3), backup
> it, compress, transfer to subscribers locations, restore, change identity
> columns seed to 2 and 3, initialize replication with "no sync"
> --
> Regards,
> Kestutis Adomavicius
> Consultant
> UAB "Baltic Software Solutions"
>
> "Hilary Cotter" <hilary.cotter@.gmail.com> wrote in message
> news:u9s4cD2yEHA.2040@.tk2msftngp13.phx.gbl...
same[vbcol=seagreen]
> table
> the
on[vbcol=seagreen]
> it
and[vbcol=seagreen]
publication,[vbcol=seagreen]
The[vbcol=seagreen]
> recreate
has[vbcol=seagreen]
> a
and[vbcol=seagreen]
<>[vbcol=seagreen]
sites.[vbcol=seagreen]
know[vbcol=seagreen]
from[vbcol=seagreen]
> that
Server[vbcol=seagreen]
until[vbcol=seagreen]
> publisher,
causing[vbcol=seagreen]
REPLICATION
>
|||Hi , even I am facing the same problem . I have implemented below soluion of
set up of seeds.
Can u pls tell me how to set up replication with nosync . I know there is
one option of when we initiaze the subscription i.e when subscriber has its
own schema and data . But when i choose this option following error come in
merge agent : "Invalid column name 'rowguidcol'."
Pls help
Regards,
Swati
"Kestutis Adomavicius" <kicker.lt@.nospaamm_tut.by> wrote in message
news:uDVOQ#6yEHA.1412@.tk2msftngp13.phx.gbl...
> I think it's possible to do it with increment 3, of course if it is set
not
> only on subscriber but also on publisher. For example setup like that:
> Publisher: Seed = 1 Increment = 3
> Publisher identity values: 1, 4, 7, 10, 13...(1+n*3)
> Subscriber1: Seed = 2 Increment = 3
> Subscriber1 identity values: 2, 5, 8, 11, 14...(2+n*3)
> Subscriber2: Seed = 3 Increment = 3
> Subscriber2 identity values: 3, 6, 9, 12, 15...(3+n*3)
> I agree with Hillary that probably the best option is to configure
publisher[vbcol=seagreen]
> database (set NFR flags on identity columns, seed 1, increment 3), backup
> it, compress, transfer to subscribers locations, restore, change identity
> columns seed to 2 and 3, initialize replication with "no sync"
> --
> Regards,
> Kestutis Adomavicius
> Consultant
> UAB "Baltic Software Solutions"
>
> "Hilary Cotter" <hilary.cotter@.gmail.com> wrote in message
> news:u9s4cD2yEHA.2040@.tk2msftngp13.phx.gbl...
same[vbcol=seagreen]
> table
> the
on[vbcol=seagreen]
> it
and[vbcol=seagreen]
publication,[vbcol=seagreen]
The[vbcol=seagreen]
> recreate
has[vbcol=seagreen]
> a
and[vbcol=seagreen]
<>[vbcol=seagreen]
sites.[vbcol=seagreen]
know[vbcol=seagreen]
from[vbcol=seagreen]
> that
Server[vbcol=seagreen]
until[vbcol=seagreen]
> publisher,
causing[vbcol=seagreen]
REPLICATION
>
|||Daniel Wilson wrote:
> Different seeds sound like a good solution. Since I expect to have 2
> subscribers, I think I Iike an increment of 3.
Daniel mentioned 2 subscribers, if I understood correctly from following
sentence.
So this approach of different identity seeds on every "end-point" of
replication topology and identity increment equal to number of "end-points"
of replication is OK for that case. The problems will come if some more
subscribers will have to be added.. Then all system will have to be
reinitialized with the increased number of "replication end-points".
Regards,
Kestas
"Hilary Cotter" <hilary.cotter@.gmail.com> wrote in message
news:etRzhI9yEHA.336@.TK2MSFTNGP10.phx.gbl...
> This is an excellent solution again Kestutis, but are there 2 or 3 sites?
I
> thought there were only 2, a publisher and a single subscriber.
> --
> Hilary Cotter
> Looking for a SQL Server replication book?
> Now available for purchase at:
> http://www.nwsu.com/0974973602.html
|||Hi , Do we have to explicitily restore the whole database . I have tried
import/export option . Rowguidcol and it's property is same for both
subscriber and publisher , so ideally it should not give this error . Pls
suggest .
Now I am trying option 1 : restoration of subscrition database.
Regards,
Swati
"Kestutis Adomavicius" <kicker.lt@.nospaamm_tut.by> wrote in message
news:O0uYaY9yEHA.3844@.TK2MSFTNGP12.phx.gbl...
> When you create merge publication, ROWGUID column is automatically added
to
> all published tables (if there is no column with property ROWGUIDCOL). If
> your subscriber database is restored from a backup of "publisher DB before
> creation of merge publication", then these columns will be missing on
> subscriber DB. You have to make sure that those columns are there - do one
> of the following:
> 1. Backup publisher DB after creation of publication and then restore it
as[vbcol=seagreen]
> a subscriber
> or
> 2. Add ROWGUID columns to all replicated tables on subscriber (make sure
> that this column has all the same properties as on subscriber DB)
> --
> Regards,
> Kestutis Adomavicius
> Consultant
> UAB "Baltic Software Solutions"
>
> "swati" <swati.zingade@.ugamsolutions.com> wrote in message
> news:efTqeK9yEHA.1192@.tk2msftngp13.phx.gbl...
soluion[vbcol=seagreen]
> of
is[vbcol=seagreen]
> its
> in
set[vbcol=seagreen]
> backup
> identity
the[vbcol=seagreen]
existing[vbcol=seagreen]
> for
> values
> restore
have[vbcol=seagreen]
> 2
publisher?[vbcol=seagreen]
the[vbcol=seagreen]
you.[vbcol=seagreen]
publisher[vbcol=seagreen]
2[vbcol=seagreen]
on[vbcol=seagreen]
> start
0x0001[vbcol=seagreen]
> Finding
same
> ALTER
>
|||I'm not totally convinced, and I really hate to quibble with you as your
answers though infrequent are spectacular!
However, if more subscribers are coming into the mix Daniel will have to
implement some form of automatic identity range management.
This would be best deployed by configuring the publication for automatic
identity range management and then deploying the snapshot to each subscriber
on an ad hoq basis.
Granted if there is a known number of subscribers for the lifetime of the
project such a manual partitioning solution such as the one you have
recommended.
Hilary Cotter
Looking for a SQL Server replication book?
Now available for purchase at:
http://www.nwsu.com/0974973602.html
"Kestutis Adomavicius" <kicker.lt@.nospaamm_tut.by> wrote in message
news:%23bRhYb9yEHA.3836@.TK2MSFTNGP12.phx.gbl...
> Daniel Wilson wrote:
> Daniel mentioned 2 subscribers, if I understood correctly from following
> sentence.
> So this approach of different identity seeds on every "end-point" of
> replication topology and identity increment equal to number of
"end-points"[vbcol=seagreen]
> of replication is OK for that case. The problems will come if some more
> subscribers will have to be added.. Then all system will have to be
> reinitialized with the increased number of "replication end-points".
> --
> Regards,
> Kestas
>
> "Hilary Cotter" <hilary.cotter@.gmail.com> wrote in message
> news:etRzhI9yEHA.336@.TK2MSFTNGP10.phx.gbl...
sites?
> I
>
Merge Replication issue (dupe key)
subscriber does the following…
Creates invoice with the primary key of Location 4, Invoice 100.
Replicates the data.
Deletes the record and recreates it.
Replicates.
I will get an duplicate primary key entry in the conflict table.
Is this because the replication ROWGUID is NOT the primary key?
Thanks,
Steve
Steve,
the ROWGUID doesn't need to be the PK and almost always shouldn't be the PK.
When you delete the record on the subscriber are you adding the record back
on the publisher before synchronizing, or are you adding the record back on
the publisher? I'll try to duplicate this behaviour once you post back.
Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com
(recommended sql server 2000 replication book:
http://www.nwsu.com/0974973602p.html)
|||Paul,
Everything is happening on the subscriber. Is created there, replicates,
deleted and recreated on the subscriber, then replicates again.
Thanks,
Steve
"Paul Ibison" wrote:
> Steve,
> the ROWGUID doesn't need to be the PK and almost always shouldn't be the PK.
> When you delete the record on the subscriber are you adding the record back
> on the publisher before synchronizing, or are you adding the record back on
> the publisher? I'll try to duplicate this behaviour once you post back.
> Cheers,
> Paul Ibison SQL Server MVP, www.replicationanswers.com
> (recommended sql server 2000 replication book:
> http://www.nwsu.com/0974973602p.html)
>
>
|||Steve,
sorry but I still can't replicate this. Perhaps there is something else
happening? Is the record changed on the publisher at any time? Also, can you
post up the exact error message.
Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com
(recommended sql server 2000 replication book:
http://www.nwsu.com/0974973602p.html)
|||Paul,
Thanks for trying to replicate this and help us out. We are fairly
inexperienced in this area.
The merge agent history is showing conflicts on the last replication, but
the conflict resolver doesn't show any. Not sure how to find them. It says
28 resolved conflicts, how can I see what they were?
After looking into the situation more, there may be some other (user)
things going on which we will need to investigate further. The may be
updating and replicating from multiple P.C.'s in a manner we did not
anticipate.
After talking with them, if we can not determine what is going on, we may
have to ask again with more details.
Thanks again,
Steve
"Paul Ibison" wrote:
> Steve,
> sorry but I still can't replicate this. Perhaps there is something else
> happening? Is the record changed on the publisher at any time? Also, can you
> post up the exact error message.
> Cheers,
> Paul Ibison SQL Server MVP, www.replicationanswers.com
> (recommended sql server 2000 replication book:
> http://www.nwsu.com/0974973602p.html)
>
>
Merge replication intermittent error.
Primary (P) and Secondary (S). I have set up merge replication with P as
the publisher and S as the distributor and an updating pull subscriber. The
machines are installed at a customer site and were successfully put into the
domain and all the replication is working. I have the merge and snapshot
agents impersonating the SQL Server Agent login.
They are still working on the power, networking and other parts of the new
building so the machines lose connectivity to the domain and login servers
peridically and sometimes power down. At times when I connect to the system
to check the replication monitor is showing an error. I had originally set
all agents to start with SQL Server and run continously. I saw that the
merge agent would encounter an error and stop. To avoid this I scheduled
the merge agent to run every day, once a minute to avoid intermittent
network errors causing it to stop and not restart. However, I still
periodically get an error that the merge agent logs every time it runs. I
can clear the error up by manually running the snapshot agent. I need to
figure out what is causing the error and have some way automatically restore
the replication.
The error reported by the merge agent is this:
The merge agent could retrieve article information for publication 'xxx'.
(Source:Merge Replication Provider (Agent); Error: -2147201017
SQL Server does not exist or access denied.
(Source: Primary (Data SOurce); Error Number: 17
I know it is not an access permission because it works most of the time. I
am wondering if it is a timing issue when a network error occurs or the
machines reboot and the primary cannot access the distributor in the
secondary. I am not sure why this would cause the merge agent to fail. It
seems to be that the snapshot agent may be failing during a reboot or during
a network failure and the subscription is marked as "bad" or something. I
am thinking of making the primary the distributor to see if that helps.
Any suggestions?
TIA
I think you need to set LoginTimeout to something large - like 60.
By default LoginTimeout is 15s.
"Mike M." <nospam@.someplace.com> wrote in message
news:%230FRneD6EHA.2192@.TK2MSFTNGP14.phx.gbl...
> Windows 2003 Server Standard, SQL Server 2000. Two identical machines.
> Primary (P) and Secondary (S). I have set up merge replication with P as
> the publisher and S as the distributor and an updating pull subscriber.
The
> machines are installed at a customer site and were successfully put into
the
> domain and all the replication is working. I have the merge and snapshot
> agents impersonating the SQL Server Agent login.
> They are still working on the power, networking and other parts of the new
> building so the machines lose connectivity to the domain and login servers
> peridically and sometimes power down. At times when I connect to the
system
> to check the replication monitor is showing an error. I had originally
set
> all agents to start with SQL Server and run continously. I saw that the
> merge agent would encounter an error and stop. To avoid this I scheduled
> the merge agent to run every day, once a minute to avoid intermittent
> network errors causing it to stop and not restart. However, I still
> periodically get an error that the merge agent logs every time it runs. I
> can clear the error up by manually running the snapshot agent. I need to
> figure out what is causing the error and have some way automatically
restore
> the replication.
> The error reported by the merge agent is this:
> The merge agent could retrieve article information for publication 'xxx'.
> (Source:Merge Replication Provider (Agent); Error: -2147201017
> SQL Server does not exist or access denied.
> (Source: Primary (Data SOurce); Error Number: 17
> I know it is not an access permission because it works most of the time.
I
> am wondering if it is a timing issue when a network error occurs or the
> machines reboot and the primary cannot access the distributor in the
> secondary. I am not sure why this would cause the merge agent to fail.
It
> seems to be that the snapshot agent may be failing during a reboot or
during
> a network failure and the subscription is marked as "bad" or something. I
> am thinking of making the primary the distributor to see if that helps.
> Any suggestions?
>
> TIA
>
|||I read somewhere you can't do this from Enterprise Manager. Is that true?
I use EM to configure/maintain SQL Server.
Thanks.
"Hilary Cotter" <hilary.cotter@.gmail.com> wrote in message
news:ux5BQDE6EHA.1596@.tk2msftngp13.phx.gbl...[vbcol=seagreen]
> I think you need to set LoginTimeout to something large - like 60.
> By default LoginTimeout is 15s.
> "Mike M." <nospam@.someplace.com> wrote in message
> news:%230FRneD6EHA.2192@.TK2MSFTNGP14.phx.gbl...
as[vbcol=seagreen]
> The
> the
snapshot[vbcol=seagreen]
new[vbcol=seagreen]
servers[vbcol=seagreen]
> system
> set
scheduled[vbcol=seagreen]
I[vbcol=seagreen]
to[vbcol=seagreen]
> restore
'xxx'.[vbcol=seagreen]
> I
> It
> during
I
>
|||Never mind. I did it using sp_configure.
Thanks.
"Mike M." <nospam@.someplace.com> wrote in message
news:OPJ9GcF6EHA.1564@.TK2MSFTNGP09.phx.gbl...[vbcol=seagreen]
> I read somewhere you can't do this from Enterprise Manager. Is that true?
> I use EM to configure/maintain SQL Server.
> Thanks.
> "Hilary Cotter" <hilary.cotter@.gmail.com> wrote in message
> news:ux5BQDE6EHA.1596@.tk2msftngp13.phx.gbl...
machines.[vbcol=seagreen]
> as
subscriber.[vbcol=seagreen]
into[vbcol=seagreen]
> snapshot
> new
> servers
originally[vbcol=seagreen]
the[vbcol=seagreen]
> scheduled
runs.[vbcol=seagreen]
> I
> to
> 'xxx'.
time.[vbcol=seagreen]
the[vbcol=seagreen]
fail.[vbcol=seagreen]
something.[vbcol=seagreen]
> I
helps.
>
|||Right click on your merge agent, select agent properties, steps, run agent,
click on the edit button, click in teh commands section, press the end key,
press the space bar, type -LoginTimeOut 120
Click Apply, ok, etc.
"Mike M." <nospam@.someplace.com> wrote in message
news:%235YnE2F6EHA.3708@.TK2MSFTNGP14.phx.gbl...[vbcol=seagreen]
> Never mind. I did it using sp_configure.
> Thanks.
> "Mike M." <nospam@.someplace.com> wrote in message
> news:OPJ9GcF6EHA.1564@.TK2MSFTNGP09.phx.gbl...
true?[vbcol=seagreen]
> machines.
P[vbcol=seagreen]
> subscriber.
> into
the[vbcol=seagreen]
> originally
> the
intermittent[vbcol=seagreen]
> runs.
need[vbcol=seagreen]
> time.
> the
> fail.
or
> something.
> helps.
>
|||Sorry about the time lapse but the holidays happened. I set the login
timeout but that did not help.
With a Merge replication, single updating pull subscription, I am wondering
what might cause the merge agent to get the following error and why does
manually running the snapshot agent allow the merge agent to succeed the
next run. Any thoughts?
The error reported by the merge agent is this:
The merge agent could retrieve article information for publication 'xxx'.
(Source:Merge Replication Provider (Agent); Error: -2147201017
SQL Server does not exist or access denied.
(Source: Primary (Data SOurce); Error Number: 17
TIA
"Hilary Cotter" <hilary.cotter@.gmail.com> wrote in message
news:en$hKHG6EHA.2568@.TK2MSFTNGP10.phx.gbl...
> Right click on your merge agent, select agent properties, steps, run
agent,
> click on the edit button, click in teh commands section, press the end
key,[vbcol=seagreen]
> press the space bar, type -LoginTimeOut 120
> Click Apply, ok, etc.
> "Mike M." <nospam@.someplace.com> wrote in message
> news:%235YnE2F6EHA.3708@.TK2MSFTNGP14.phx.gbl...
> true?
with[vbcol=seagreen]
> P
put[vbcol=seagreen]
> the
the[vbcol=seagreen]
that[vbcol=seagreen]
> intermittent
still[vbcol=seagreen]
> need
automatically[vbcol=seagreen]
or[vbcol=seagreen]
the
> or
>
|||what job owner is your merge agent running under? It should be running under
sa.
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
"Mike M." <nospam@.someplace.com> wrote in message
news:OCiC1pz8EHA.2600@.TK2MSFTNGP09.phx.gbl...
> Sorry about the time lapse but the holidays happened. I set the login
> timeout but that did not help.
> With a Merge replication, single updating pull subscription, I am
wondering[vbcol=seagreen]
> what might cause the merge agent to get the following error and why does
> manually running the snapshot agent allow the merge agent to succeed the
> next run. Any thoughts?
> The error reported by the merge agent is this:
> The merge agent could retrieve article information for publication 'xxx'.
> (Source:Merge Replication Provider (Agent); Error: -2147201017
> SQL Server does not exist or access denied.
> (Source: Primary (Data SOurce); Error Number: 17
> TIA
> "Hilary Cotter" <hilary.cotter@.gmail.com> wrote in message
> news:en$hKHG6EHA.2568@.TK2MSFTNGP10.phx.gbl...
> agent,
> key,
> with
> put
of[vbcol=seagreen]
login[vbcol=seagreen]
> the
> that
> still
it[vbcol=seagreen]
I[vbcol=seagreen]
> automatically
publication[vbcol=seagreen]
the[vbcol=seagreen]
> or
> the
to[vbcol=seagreen]
reboot
>
|||I have it set to run under a domain user that is in the local
administrator's group. The replication runs fine for periods of time before
the intermittent error occurs. If the owner was incorrect I would suspect
that it wouldn't run at all.
"Hilary Cotter" <hilary.cotter@.gmail.com> wrote in message
news:OS1rGN18EHA.3596@.TK2MSFTNGP12.phx.gbl...
> what job owner is your merge agent running under? It should be running
under[vbcol=seagreen]
> sa.
> --
> Hilary Cotter
> Looking for a SQL Server replication book?
> http://www.nwsu.com/0974973602.html
> "Mike M." <nospam@.someplace.com> wrote in message
> news:OCiC1pz8EHA.2600@.TK2MSFTNGP09.phx.gbl...
> wondering
'xxx'.[vbcol=seagreen]
that[vbcol=seagreen]
60.[vbcol=seagreen]
replication[vbcol=seagreen]
successfully[vbcol=seagreen]
and[vbcol=seagreen]
parts[vbcol=seagreen]
> of
> login
to[vbcol=seagreen]
saw[vbcol=seagreen]
I[vbcol=seagreen]
> it
> I
> publication
> the
occurs[vbcol=seagreen]
in[vbcol=seagreen]
> to
> reboot
that
>
|||That is true, it should be an all or nothing.
Let me see if I am understanding this correctly. Your merge agent is working
fine. It is running continuously. Suddenly it stops with the message SQL
Server does not exist or access denied. You run a new snapshot, it then
works?
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
"Mike M." <nospam@.someplace.com> wrote in message
news:uBog2228EHA.1404@.TK2MSFTNGP11.phx.gbl...
> I have it set to run under a domain user that is in the local
> administrator's group. The replication runs fine for periods of time
before[vbcol=seagreen]
> the intermittent error occurs. If the owner was incorrect I would suspect
> that it wouldn't run at all.
> "Hilary Cotter" <hilary.cotter@.gmail.com> wrote in message
> news:OS1rGN18EHA.3596@.TK2MSFTNGP12.phx.gbl...
> under
does[vbcol=seagreen]
the[vbcol=seagreen]
> 'xxx'.
end[vbcol=seagreen]
> that
> 60.
identical[vbcol=seagreen]
> replication
> successfully
> and
> parts
[vbcol=seagreen]
connect[vbcol=seagreen]
> to
> saw
this[vbcol=seagreen]
> I
I[vbcol=seagreen]
time[vbcol=seagreen]
agent.[vbcol=seagreen]
Error: -2147201017[vbcol=seagreen]
of[vbcol=seagreen]
> occurs
distributor[vbcol=seagreen]
> in
agent
> that
>
|||Exactly! I know it sounds weird but that is what happens. I see network
and domain errors in the event log. Some of them indicate trouble finding
the login and/or the domain server and I have seen at least one SQL error
saying it could not authenticate users. I think one or more of these
network issues causes the state of the replication to get munged. Here are
some things I am thinking of trying to get the replication to recover
without intervention:
1. Make the distributor the smae machine as the publisher. Currently it is
on the backup (subscriber) machine. I am thinking it may help when there
are intermittent network errors.
2. Have the snapshot agent scheduled to run every 15 minutes or so. Just to
see if it restarts things.
Unfortunately the systems are half way around the world, in a live
environment and access is spotty.
"Hilary Cotter" <hilary.cotter@.gmail.com> wrote in message
news:eAwtceC9EHA.2676@.TK2MSFTNGP12.phx.gbl...
> That is true, it should be an all or nothing.
> Let me see if I am understanding this correctly. Your merge agent is
working[vbcol=seagreen]
> fine. It is running continuously. Suddenly it stops with the message SQL
> Server does not exist or access denied. You run a new snapshot, it then
> works?
> --
> Hilary Cotter
> Looking for a SQL Server replication book?
> http://www.nwsu.com/0974973602.html
> "Mike M." <nospam@.someplace.com> wrote in message
> news:uBog2228EHA.1404@.TK2MSFTNGP11.phx.gbl...
> before
suspect[vbcol=seagreen]
login[vbcol=seagreen]
> does
> the
run[vbcol=seagreen]
> end
Is[vbcol=seagreen]
like[vbcol=seagreen]
> identical
pull[vbcol=seagreen]
merge[vbcol=seagreen]
and[vbcol=seagreen]
> connect
had[vbcol=seagreen]
I[vbcol=seagreen]
> this
However,[vbcol=seagreen]
> I
> time
> agent.
> Error: -2147201017
most[vbcol=seagreen]
> of
> distributor
> agent
a[vbcol=seagreen]
or[vbcol=seagreen]
if
>
Saturday, February 25, 2012
Merge Replication Conflict - Primary Key Constraint
before I created the merge replication publication, I modified the tables and
set my identity columns to Yes (Not for replication) option.
I am hitting a problem however, when I try to insert a new row in one of the
tables and then replicate the data back to the server. I am getting a
conflict with the reason being:
Reason Type 5, Reason code 2627
Reason Text:
The row was inserted at Subscriber.x' but could not be inserted at Server.X.
Violation of PRIMARY KEY constraint 'PK_X'. Cannot insert duplicate key in
object X.
I thought that having Not for replication option set for identity columns
would cause replication to use the server and/or subscriber environment to
generate identity column values on inserts.
Any help would be greatly appreciated.
Hi Guy - you'll need to partition the identity ranges to avoid identity
conflicts.
The easiest, most maintainable way is to change the article properties to
enable Automatic identity range management and then reinitialize.
Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com .
|||Thanks Paul. I will try this out and see if the problem is resolved. My
apologies for this message posting so many times. My browser was acting up
and reporting an error when I posted. So I thought my post had failed.
One Question: Do you know why this is happening. I must not be
understanding the purpose of not for replication option. Because I thought
this is what would resolve this type of problem.
"Paul Ibison" wrote:
> Hi Guy - you'll need to partition the identity ranges to avoid identity
> conflicts.
> The easiest, most maintainable way is to change the article properties to
> enable Automatic identity range management and then reinitialize.
> Cheers,
> Paul Ibison SQL Server MVP, www.replicationanswers.com .
>
>
|||The NFT replication allows replication agents to do an identity insert when
distributing changes. However if the renge isn't partitioned, there will
still be a conflict.
Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com .
Monday, February 20, 2012
Merge replication agent schedules question.
machines running this configuration. Machine A is primary, machine B is
backup. I have setup a merge replication as such: Distributor running on B,
publisher on A, pull subscriber on B. These machines are installed at a
customer site on a new network that exeriences outages and errors. I
currently have the schedule for the snapshot agent to start with SQL Server
agent. I had previously had the same schedule set for the Merge agent.
However, whenever an error occured on the network the merge agent would
report an error and stop. The system is not monitored frequently by the
customer so I need the agent to restart/continue. I changed the schedule
for the merge agent to run once a minute. This solved the immediate
problem. However, I seem to have a similar problem on the snapshot agent
where it fails and won't restart. I ran the snapshot agent manually and the
replication picked back up. I am leery of scheduling it to run periodically
(once a minute) due to overhead. I am new to replication so I am not sure
what is a good combination for scheduling merge replication where the agents
need to report errors and continue attempting to replicate. Is there any
way to have these agents run continuously and restart after an error? Any
suggestions would be appreciated.
TIA
relax. Schedule the snapshot agent to run every minute, hour or whatever
schedule you think is best.
The snapshot will only be generated if a subscriber needs one. Otherwise the
agent will very gracefully quit and go back to sleep.
Hilary Cotter
Looking for a SQL Server replication book?
Now available for purchase at:
http://www.nwsu.com/0974973602.html
"Mike M." <nospam@.someplace.com> wrote in message
news:uuE5gPi4EHA.1260@.TK2MSFTNGP12.phx.gbl...
>I am using SQL Server 2000 on Windows 2003 Server. I have two identical
> machines running this configuration. Machine A is primary, machine B is
> backup. I have setup a merge replication as such: Distributor running on
> B,
> publisher on A, pull subscriber on B. These machines are installed at a
> customer site on a new network that exeriences outages and errors. I
> currently have the schedule for the snapshot agent to start with SQL
> Server
> agent. I had previously had the same schedule set for the Merge agent.
> However, whenever an error occured on the network the merge agent would
> report an error and stop. The system is not monitored frequently by the
> customer so I need the agent to restart/continue. I changed the schedule
> for the merge agent to run once a minute. This solved the immediate
> problem. However, I seem to have a similar problem on the snapshot agent
> where it fails and won't restart. I ran the snapshot agent manually and
> the
> replication picked back up. I am leery of scheduling it to run
> periodically
> (once a minute) due to overhead. I am new to replication so I am not sure
> what is a good combination for scheduling merge replication where the
> agents
> need to report errors and continue attempting to replicate. Is there any
> way to have these agents run continuously and restart after an error? Any
> suggestions would be appreciated.
> TIA
>
|||That sounds good. Does the subscriber specify it needs a snapshot using the
synchronization transaction at the distribution database or something? I
don't wan't to add to the network traffic by having the publisher bulk copy
all the data to the distributor (machine B) if it is not needed. Will the
snapshot agent log show that it ran and did not generate any data? I'll
give that a try.
Thanks.
"Hilary Cotter" <hilary.cotter@.gmail.com> wrote in message
news:e02jkqq4EHA.1452@.TK2MSFTNGP11.phx.gbl...
> relax. Schedule the snapshot agent to run every minute, hour or whatever
> schedule you think is best.
> The snapshot will only be generated if a subscriber needs one. Otherwise
the[vbcol=seagreen]
> agent will very gracefully quit and go back to sleep.
> --
> Hilary Cotter
> Looking for a SQL Server replication book?
> Now available for purchase at:
> http://www.nwsu.com/0974973602.html
> "Mike M." <nospam@.someplace.com> wrote in message
> news:uuE5gPi4EHA.1260@.TK2MSFTNGP12.phx.gbl...
on[vbcol=seagreen]
schedule[vbcol=seagreen]
agent[vbcol=seagreen]
sure[vbcol=seagreen]
any[vbcol=seagreen]
Any
>
|||After further review, did I mention that I allow anonymous subscriptions?
When I set the snapshot agent to run once a minute it generates a full
snapshot each time. I am going to disable anonymous subscriptions and see
how that affects it.
"Mike M." <nospam@.someplace.com> wrote in message
news:uhZYeAs4EHA.4092@.TK2MSFTNGP14.phx.gbl...
> That sounds good. Does the subscriber specify it needs a snapshot using
the
> synchronization transaction at the distribution database or something? I
> don't wan't to add to the network traffic by having the publisher bulk
copy[vbcol=seagreen]
> all the data to the distributor (machine B) if it is not needed. Will the
> snapshot agent log show that it ran and did not generate any data? I'll
> give that a try.
> Thanks.
> "Hilary Cotter" <hilary.cotter@.gmail.com> wrote in message
> news:e02jkqq4EHA.1452@.TK2MSFTNGP11.phx.gbl...
> the
identical[vbcol=seagreen]
is[vbcol=seagreen]
> on
a[vbcol=seagreen]
agent.[vbcol=seagreen]
would[vbcol=seagreen]
the[vbcol=seagreen]
> schedule
> agent
and
> sure
> any
> Any
>
|||Pull subscription, not anonymous. Snapshot agent set to run each minute.
Same result. The snapshot was generated each minute.
"Mike M." <nospam@.someplace.com> wrote in message
news:uJXn7Vs4EHA.524@.TK2MSFTNGP09.phx.gbl...[vbcol=seagreen]
> After further review, did I mention that I allow anonymous subscriptions?
> When I set the snapshot agent to run once a minute it generates a full
> snapshot each time. I am going to disable anonymous subscriptions and see
> how that affects it.
> "Mike M." <nospam@.someplace.com> wrote in message
> news:uhZYeAs4EHA.4092@.TK2MSFTNGP14.phx.gbl...
> the
I[vbcol=seagreen]
> copy
the[vbcol=seagreen]
whatever[vbcol=seagreen]
Otherwise[vbcol=seagreen]
> identical
B[vbcol=seagreen]
> is
running[vbcol=seagreen]
at[vbcol=seagreen]
> a
I[vbcol=seagreen]
> agent.
> would
> the
> and
not[vbcol=seagreen]
the[vbcol=seagreen]
there[vbcol=seagreen]
error?
>
|||for anonymous the snapshot generated every time the snapshot agent is run.
For named it is not.
Hilary Cotter
Looking for a SQL Server replication book?
Now available for purchase at:
http://www.nwsu.com/0974973602.html
"Mike M." <nospam@.someplace.com> wrote in message
news:%23%23vIIcs4EHA.1396@.tk2msftngp13.phx.gbl...
> Pull subscription, not anonymous. Snapshot agent set to run each minute.
> Same result. The snapshot was generated each minute.
> "Mike M." <nospam@.someplace.com> wrote in message
> news:uJXn7Vs4EHA.524@.TK2MSFTNGP09.phx.gbl...
> I
> the
> whatever
> Otherwise
> B
> running
> at
> I
> not
> the
> there
> error?
>