Re: Alter table command vs table copy/rename

Tech-Archive recommends: Fix windows errors by optimizing your registry



Yes, sp_rename is also used. I guess the problem that some people had is
altering a table that is quite large in terms of the number of rows in the
table is quite slow.

But isn't copying all of the data over to another table also slow? And then
rebuilding indexes and adding constraints? You'd think you might be saving
time because you could build the second table while people are still
accessing the first, but unless the data doesn't need to be consistent,
you'd still need a way to lock people out of making changes to the source
table until you could run the rename (personally I use ALTER SCHEMA
TRANSFER).

A

.



Relevant Pages

  • Re: Something fun in MS Word
    ... Instead of copying normal.dot from another computer, rename it to ... oldnormal.dot and then restart Word. ... Doug Robbins - Word MVP ...
    (microsoft.public.word.docmanagement)
  • Re: Long File Names - Cant Access
    ... I've tried to rename the file, ... I'll try copying it though. ... I've got some Word files whose names are way too long. ... > At a Dos prompt, try renaming them with a wild card. ...
    (microsoft.public.word.docmanagement)
  • Re: Windows 2003 RIS Question
    ... I got a partial answer for my first question. ... Answer was to rename ... So, I tried copying ... Prev by Date: ...
    (microsoft.public.win2000.general)
  • Re: Desperate help! Copying modules renames them!
    ... > Hi - I am having a very annoying problem and need some urgent help on it - ... > I wrote some macros that fire in Microsoft Project - to check if the user ... copying the updated modules into the current ... > rename the module via code. ...
    (microsoft.public.project.vba)
  • Re: Desperate help! Copying modules renames them!
    ... > Hi - I am having a very annoying problem and need some urgent help on it - ... > I wrote some macros that fire in Microsoft Project - to check if the user ... copying the updated modules into the current ... > rename the module via code. ...
    (microsoft.public.office.developer.vba)