sql - Changing the maximum length of a varchar column? -



sql - Changing the maximum length of a varchar column? -

i'm trying update length of varchar column 255 characters 500 without losing contents. i've dropped , re-created tables before i've never been exposed alter statement believe need utilize this. found documentation here: alter table (transfact-sql) can't create heads or tails of it.

i have next far (essentially nil unfortunately):

alter table [progennet_dev].progen.le alter column ur_value_3

how approach this? there improve documentation statement out there (i did searches illustration statement came empty)?

remember specify not null explicitly if desired. otherwise default null regardless of original specification is.

alter table [progennet_dev].progen.le alter column ur_value_3 varchar (500) [not null]

please note square brackets indicate bit of syntax optional, sql run in ssms:

alter table [progennet_dev].progen.le alter column ur_value_3 varchar (500) not null

sql sql-server sql-server-2008 tsql varchar

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -