Alter table command vs table copy/rename
- From: bpdee <bpdee@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 17 Jun 2009 07:07:07 -0700
Hi,
Does anyone know what the pros and cons are of doing an alter table
statement rather than copy/rename table method to make table changes? For
years now, we have a product where the way they make schema changes is by
copying the table, rebuilding a table with the change like adding a new
column, bring the data back in, and then renaming the table back to the
original name. They were told that altering the table causes a roll through
all of the rows in a table once for each new column being added to the table
and that this is extremely slow. It seems that it's better to do an alter
table statement rather than the copy/rename method.
Thanks,
Dee
.
- Follow-Ups:
- Re: Alter table command vs table copy/rename
- From: Erland Sommarskog
- RE: Alter table command vs table copy/rename
- From: Linchi Shea
- Re: Alter table command vs table copy/rename
- From: Aaron Bertrand [SQL Server MVP]
- Re: Alter table command vs table copy/rename
- From: Uri Dimant
- Re: Alter table command vs table copy/rename
- Prev by Date: Re: reporting services textbox calculation problem
- Next by Date: Re: Alter table command vs table copy/rename
- Previous by thread: reporting services textbox calculation problem
- Next by thread: Re: Alter table command vs table copy/rename
- Index(es):
Relevant Pages
|