Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Adding new column to the table that 16 million row
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

45 Posts

Posted - 07/11/2013 :  16:55:10  Show Profile  Reply with Quote
we have a table with 16 Million records,

and also this table is replicated.

we want to add a new column in to this table for some reason?

what can harm?

James K
Flowing Fount of Yak Knowledge

3873 Posts

Posted - 07/11/2013 :  17:05:14  Show Profile  Reply with Quote
My experience has been that if you add a nullable column (with no default), it is almost instantaneous. But, if you add a column that has to be populated, it will take a bit of time because it will have to go and write all that data. This is from a year or so ago, so I may not be remembering the details precisely. Please do a test for yourself in a dev environment before you take the plunge.

As for replication, you should not have to do anything special. See here for details: Don't add the column from the GUI, use a T-SQL script with ALTER TABLE.

Edited by - James K on 07/11/2013 17:05:56
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000