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
 SQL Server 2000 Forums
 SQL Server Development (2000)
 alter table

Author  Topic 

converge
Starting Member

7 Posts

Posted - 2004-08-13 : 15:04:44
I would like to know is there's a way to modify the lenght of a text datatype column in one of my table. I have already created the table but the lenght is now too short.

Thanks

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2004-08-13 : 15:18:32
text doesn't have different sizes. Are you referring to char or varchar? If so you can alter it with ALTER TABLE.

Tara
Go to Top of Page

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2004-08-13 : 15:19:11
how can the length of a text column be too short?? you probably mean varchar, right?
you could do it in enterprise manage in design table mode and simply change the length or you can use:
alter table TableName ALTER COLUMN columnName VARCHAR(20) -- 20 = new length

Go with the flow & have fun! Else fight the flow :)
Go to Top of Page

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2004-08-13 : 15:20:47


Go with the flow & have fun! Else fight the flow :)
Go to Top of Page
   

- Advertisement -