sql server - Any consequences when re-creating a table? -
if want extend column length 30 60 characters varchar
column in sql server management studio, have uncheck box prevent saving changes require table re-creation
.
are there side effects doing table re-creation? reset identity or increment seed, loose indices or find other unwanted effects?
i need on live db , don't want find out hard way has changed.
this metadata change not require rebuilding table.
alter table yourtable alter column yourcolumn varchar(60) [not] null
regarding question "are there side effects doing table re-creation" through gui.
it unnecessary overhead in case , block concurrent users until table copied , recreated. additionally designer has known bugs when doing (e.g. drops filestream
attribute columns)
Comments
Post a Comment