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 2005 Forums
 Transact-SQL (2005)
 help modifying column

Author  Topic 

mike123
Master Smack Fu Yak Hacker

1462 Posts

Posted - 2009-04-30 : 03:00:41

Something really simple, just trying to do in a hurry and both articles I read seem to not work . maybe its for mysql what I read..

I'm just trying to alter a column to increase its size.. any help appreciated.. I'm trying below

ALTER TABLE tblMessage
ALTER Message [varchar](2500) NULL


Thanks once again! :)
mike123

dineshrajan_it
Posting Yak Master

217 Posts

Posted - 2009-04-30 : 03:04:24
Alter Table mytable
Alter column mycolumn varchar(5000)

u missed out column keyword from 2 line.

Iam a slow walker but i never walk back
Go to Top of Page

mike123
Master Smack Fu Yak Hacker

1462 Posts

Posted - 2009-04-30 : 05:42:18
ahh ok gotcha .. thx! its too late here =)
Go to Top of Page
   

- Advertisement -