Groups | Blog | Home
all groups > sql server replication > june 2005 >

sql server replication : Help with a large delete


Russell
6/30/2005 6:28:01 AM
I have a table that is part a merge publication that I need to delete 3
million rows from which will leave about a million in the table. I plan to
just insert a list of the id's to go in a temporary table and then just do
delete where id in table X.

Another way that has been suggested to me is to place a copy of the records
that I want to keep into another table and then truncate the main table and
then put the ones I want back in. Would this method work due to the table
being part of a merge publication, as I presume that the truncate would not
Russell
6/30/2005 1:04:05 PM
Will it only grow huge on the server that I do the delete on or will it grow
huge on both servers?

[quoted text, click to view]
Hilary Cotter
6/30/2005 1:43:47 PM
I'd do the truncate and reinsert as your transaction log will likely grow
absolutely huge the other way. Not to say it won't grow huge the first way.

keep in mind that in order to do the truncate you will need to drop the
subscriptions and publications.
--
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]

AddThis Social Bookmark Button