SQL Server 2005: 240 million row table. Column requirements changing from NOT NULL to NULL.
Generally bad practice (and often impossible) to use ALTER statements when dealing with tables this big, however, trying to avoid rebuilding the table, if possible.
Tested ALTER statement against a dev table containing 20m rows, and the statement executed successfully in <1 second.
Question: This appears that it should work against the huge production table... but can anyone out there point out risks or impact based on experience (other than the obvious)?
Many thanks.
Never had a problem doing this myself on large tables.
If you were changing the datatype or shortening the size of a column for example, that would involve more work. But for a change from NOT NULL to NULL, it shouldn't be too taxing a task.
I would however, as a standard approach, schedule the update in during a quiet period.