You are here: Re: table columns « MsSQL Server « IT news, forums, messages
Re: table columns

Posted by Gert-Jan Strik on 10/15/07 20:53

If you change this using the ALTER TABLE ... ALTER COLUMN command, then
you will see no immediate effect, apart from the fact that you can now
store larger strings. Make sure you don't (accidentally) change the
NULL/NOT-NULL setting. The ALTER statement will need a schema lock, but
probably just for a fraction of a second (assuming no blocking).

If you actually start replacing shorter strings with longer strings, you
could get more page splits and thus fragmentation.

--
Gert-Jan


MikeJ wrote:
>
> i have a table with 6 million row
> what is the affect of increasing a varchar(255) column
> to varchar(500)
>
> tia
> MJ

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация