all groups > sql server replication > may 2007 >
You're in the

sql server replication

group:

Replication is failing due to use of FTS on my subscriber, what can I do?



Re: Replication is failing due to use of FTS on my subscriber, what can I do? Raymond Mak [MSFT]
5/1/2007 9:54:35 AM
sql server replication: Hi Daniel,

If you are using push subscriptions from a SQL2000 distributor, you are
essentially using the SQL2000 replication components which, I am sorry to
say, are ill-equipped to handle things like full-text indexes during
snapshot processing. This also means that upgrading the subscriber to
SQL2005 SP2 will probably not do you any good. Alternatively, you can use a
SQL2005 SP2 instance as the distributor of your SQL2000 publisher so you can
enable the FulltextIndex (0x0000000001000000) article schema option via
sp_add|changearticle (both SQL2000 and SQL2005 GUI will not allow you to
specify that for a SQL2000 publisher) and let the SQL2005 replication
components handle the full-text index dependencies for you (ideally using
"drop" as the article pre-creation commands). That said, I can imagine that
moving the distributor can involve a substantial amount of work.

Hope that helps,

-Raymond

[quoted text, click to view]

Replication is failing due to use of FTS on my subscriber, what can I do? Daniel Crichton
5/1/2007 4:16:58 PM
I'm in the middle of setting up a non-updating transactional replication
from SQL Server 2000 SP3 (can't put SP4 on as the main application we use
hasn't been certified for SP4 yet) to SQL Server 2005 SP1 (I could put SP2
on if it will fix the issue, but it would mean taking our e-commerce sites
down while doing so and I'd need to schedule a maintenance window for this).
At first it was working fine, but snapshots were set to delete the tables
and so we'd lose the FTS setups. I've now changed the snapshots to not do
this, and now the replications fails with the error:

Cannot drop index 'PK_Product' because it enforces the full-text key for
table or indexed view 'Product'.

This occurs with both "Delete data. If article has a row filter, delete
only data that matches the filter.", "Truncate all data in the existing
object" (which is the preferred option), and "Keep existing object
unchanged". It also doesn't matter if I have the clustered and/or
nonclustered index copy set to true or false (the PK is the clustered index
on this table).

This is a push subscription, with the distribution agent running on the
publisher.

Any ideas how I can retain the table structure (so keeping the FTS index and
not having to rebuild it each time the snapshot is applied) and have
transaction replication working? Or is it not possible?

Dan

Re: Replication is failing due to use of FTS on my subscriber, what can I do? Paul Ibison
5/1/2007 9:41:25 PM
Daniel,
I'd recommend having pre and post snapshot scripts to take care of the
full-text index - one to drop it and one to readd it along with
change-tracking.
HTH,
Paul Ibison

Re: Replication is failing due to use of FTS on my subscriber, what can I do? Daniel Crichton
5/2/2007 12:00:00 AM
Paul wrote on Tue, 1 May 2007 21:41:25 +0100:

[quoted text, click to view]

Unfortunately that is going to be a nightmare, as it takes hours to rebuild
the FTS. I really need a solution that doesn't require the PK to be dropped,
so that the FTS index will remain.

Dan

Re: Replication is failing due to use of FTS on my subscriber, what can I do? Daniel Crichton
5/2/2007 12:00:00 AM
Raymond wrote on Tue, 1 May 2007 09:54:35 -0700:

[quoted text, click to view]

It seems strange that all options require the PK to be dropped - I would
have thought that the options to delete or truncate data in the destination
table would leave the PK untouched (after all, it shouldn't be touching the
schema). I don't have an FTS index on the SQL Server 2000 source tables -
the FTS is handled solely on the subscriber, so I'm not trying to replicate
the FTS catalog, just the data in the tables so that the change tracking on
the subscriber handles all the FTS work.

Dan

Re: Replication is failing due to use of FTS on my subscriber, what can I do? Raymond Mak [MSFT]
5/2/2007 9:26:45 AM
Hi Daniel,

I probably don't understand all the details about your scenario but given
that applying a snapshot typically replaces most of the data at the
subscriber, I would think that a FTS rebuild is likely required (or at least
a good idea) after the snapshot has been applied. That said, we no longer
drop the primary key\unique constraints (which is an arguably bad fix for
some other issue) in a "mostly" SQL2005 environment (SQL2005 snapshot and
distribution agent) if the article pre-creation is 'delete'. However,
leaving any unique constraints\indexes (especially non-clustered) while the
snapshot is being applied runs the risk of slowing down the snapshot
delivery process significantly (no minimal logging) and may prevent a
concurrent snapshot from being delivered successfully since bcp data
generated for a concurrent snapshot can violate uniqueness constraints
(compensated later on during the reconciliation phase).

-Raymond

[quoted text, click to view]

Re: Replication is failing due to use of FTS on my subscriber, what can I do? Raymond Mak [MSFT]
5/2/2007 9:46:19 AM
Hi Daniel,

I probably don't understand all the details about your scenario but given
that applying a snapshot typically replaces most of the data at the
subscriber, I would think that a FTS rebuild is likely required (or at least
a good idea) after the snapshot has been applied. That said, we no longer
drop the primary key\unique constraints (which is an arguably bad fix for
some other issue) in a "mostly" SQL2005 environment (SQL2005 snapshot and
distribution agent) if the article pre-creation is 'delete'. However,
leaving any unique constraints\indexes (especially non-clustered) while the
snapshot is being applied runs the risk of slowing down the snapshot
delivery process significantly (no minimal logging) and may prevent a
concurrent snapshot from being delivered successfully since bcp data
generated for a concurrent snapshot can violate uniqueness constraints
(compensated later on during the reconciliation phase).

-Raymond

[quoted text, click to view]

Re: Replication is failing due to use of FTS on my subscriber, what can I do? Daniel Crichton
5/3/2007 12:00:00 AM
I guess that makes sense. I'm hoping that snapshot application will be
rarely required in this case, so long as the transactional replication keeps
going it shouldn't need a new snapshot applying too often, and in the cases
it does it looks like I'll have to rebuild the FTS.

Dan

Raymond wrote on Wed, 2 May 2007 09:26:45 -0700:

[quoted text, click to view]
AddThis Social Bookmark Button