SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
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
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

kshahzad
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

3719 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: http://technet.microsoft.com/en-us/library/ms151870.aspx 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  
 New 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.05 seconds. Powered By: Snitz Forums 2000