开发者

SQL Server: Add Columns When In Production Environment

开发者 https://www.devze.com 2022-12-16 16:46 出处:网络
Are there any issues/problems related to adding new columns (not indexed) into a table when the database is already online. Assume that the database is quite busy开发者_如何学C on a constant basis and

Are there any issues/problems related to adding new columns (not indexed) into a table when the database is already online. Assume that the database is quite busy开发者_如何学C on a constant basis and the table in question has over 1'000'000 records. Thanks.


Well, adding a column into your running system will definitely cause some interruptions and will gobble up system resources, so at best, your database will feel slow, at worst, people won't be able to query and get results.

You need to find a window of quiet time to do this - e.g. during the night or on a weekend or something.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号