Reply to Re: Massive delete in DB

Your name:

Reply:


Posted by DH on 09/08/05 17:26

"AK" <AK_TIREDOFSPAM@hotmail.COM> wrote in message
news:1126016517.558342.294600@z14g2000cwz.googlegroups.com...
> instead of deleting tons of rows, you could SELECT INTO <new table> the
> rows you intend to keep, drop the old table, and rename the new one.
> Could be much faster
>

Or BCP the WANTED data out (you can create a view of the wanted records and
bcp from the view), drop indexes, truncate, load it back in and reindex.
BCP can be done as a mostly unlogged operation.

One way or another, you probably want to reindex to reorganize the table.

I recommend:
1. Testing with a small quantity of data in test tables and view with same
structure as real tables.
2. Good backups.
- or -
A strong, good-looking resume all printed and ready to roll.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация