Adding Not Null with Default column to large Table
From: Neil K (K_at_discussions.microsoft.com)
Date: 09/03/04
- Next message: Tibor Karaszi: "Re: SQL server CAL "licence" query"
- Previous message: neil k: "Re: fn_get_sql"
- Next in thread: Adam Machanic: "Re: Adding Not Null with Default column to large Table"
- Reply: Adam Machanic: "Re: Adding Not Null with Default column to large Table"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 3 Sep 2004 02:49:02 -0700
I am running an upgrade to an existing system which I have found is using the
Alter Table statement to add a Not Null with Default column to huge table
(100 million records). Not surprisingly it is taking rather a long time!
Can anyone give me any other options to perform this operation ?
I'm currently thinking about
1) Adding the column Nullable
2) Running multiple updates to the table
3) Altering the column to make it Not-Nullable.
- Next message: Tibor Karaszi: "Re: SQL server CAL "licence" query"
- Previous message: neil k: "Re: fn_get_sql"
- Next in thread: Adam Machanic: "Re: Adding Not Null with Default column to large Table"
- Reply: Adam Machanic: "Re: Adding Not Null with Default column to large Table"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|