all groups > sql server replication > august 2005 >
You're in the

sql server replication

group:

Deleting Large Quantiy of Rows


Re: Deleting Large Quantiy of Rows Hilary Cotter
8/31/2005 6:13:57 AM
sql server replication:
From what you are saying it looks like these rows on the subscriber are read
only and the data flow is only from the publisher to the subscriber for this
table. If so remove this table from the merge publication, put it in a
transactional publication and do your deletes through a stored procedure and
replicate the execution of the stored procedure.

--
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
[quoted text, click to view]

Deleting Large Quantiy of Rows Tim Ford
8/31/2005 8:10:38 AM
Hi Guys,

I need a little advice. I need to delete 250000 rows on a monthly basis and
my users are using MSDE 2000 with merge replication, publisher is SQL Server
2000 Standard.

The users will never be uploading or making changes to this table. Is there
any way i can make this a quick delete as currently for each row that is in
the Article published table sql is sending down a delete statement for each
row to the subscriber. Thus taking longer than expected.

Any ideas or advice would be greatly apprecitaed.

Thanks, Tim.

Re: Deleting Large Quantiy of Rows Hilary Cotter
8/31/2005 9:55:10 AM
I think your best option would be to drop the subscription (possibly drop
the publication as well to drop the triggers which will slow the delete), do
the delete, and then recreate the publication and subscription and do a no
sync.

--
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
[quoted text, click to view]

Re: Deleting Large Quantiy of Rows Tim Ford
8/31/2005 11:18:19 AM
Hi Hilary,

Thanks for your response, this is not going to be possible as we use the
ActiveX control and the publications have been hard coded. Which i know is
not good. Is there any other way that we could perhaps specify the order
that things get run in I.E sp_AddScriptexec. I have worked a way out with
the system tables that we could remove generations. However i would need to
make sure that sp_addscriptexec was fired first in the replication process.

Thanks, Tim.

[quoted text, click to view]

Re: Deleting Large Quantiy of Rows Hilary Cotter
9/1/2005 6:43:49 AM
It would remain there. This is probably not what you want, so you would have
to delete on both sides.

--
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
[quoted text, click to view]

Re: Deleting Large Quantiy of Rows Tim Ford
9/1/2005 8:39:49 AM
Hi Hilary,

Thanks for that. What would happen to the information that was in the table
on the subscriber?? Would that get deleted locally, as this information
would no longer be needed.

Again Thanks for all you help.

Tim.
[quoted text, click to view]

AddThis Social Bookmark Button