Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 how can i increase the size of varchar

Author  Topic 

sunsanvin
Master Smack Fu Yak Hacker

1274 Posts

Posted - 2006-11-10 : 01:32:57
Dearfriends,
please guide me,
i've a column with varchar(100).
presently, i need that column as varchar(500).



thank you very much.

Vinod

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2006-11-10 : 01:58:44
[code]alter table <table_name> alter column <column_name> varchar(500)[/code]


KH

Go to Top of Page

sunsanvin
Master Smack Fu Yak Hacker

1274 Posts

Posted - 2006-11-10 : 05:44:52
Thank you very much Tan

Vinod
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2006-11-10 : 10:52:17
Read about Alter table in sql server help file for more informations

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

chiragkhabaria
Master Smack Fu Yak Hacker

1907 Posts

Posted - 2006-11-11 : 02:42:49
Make sure when you alter table, there are no default constraints on that column else it may raise an error.

Chirag

http://chirikworld.blogspot.com/
Go to Top of Page
   

- Advertisement -