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 TO INCREASE THE COLUMN SIZE

Author  Topic 

sunsanvin
Master Smack Fu Yak Hacker

1274 Posts

Posted - 2007-02-23 : 04:40:39
Dear friends,

i've a column with nvarchar type. how can i increase the size of the column?

Vinod

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2007-02-23 : 04:42:50
[code]
alter table <table name> alter column <column name> nvarchar ( <new size> )
[/code]


KH

Go to Top of Page

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2007-02-23 : 04:44:28
if you have foreign key reference to the column, use ENTERPRISE MANAGER to do it. It will also alter the size of other table that reference this column.


KH

Go to Top of Page

robvolk
Most Valuable Yak

15732 Posts

Posted - 2007-02-27 : 07:57:31
For a minute there, the capital letters made me think this was Viagra spam.
Go to Top of Page

AndrewMurphy
Master Smack Fu Yak Hacker

2916 Posts

Posted - 2007-02-27 : 08:07:21
Rob....Trust you to work that out!!!
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-02-27 : 08:07:48
quote:
Originally posted by robvolk

For a minute there, the capital letters made me think this was Viagra spam.
Or increase the colon size?
Why would anyone do that?


Peter Larsson
Helsingborg, Sweden
Go to Top of Page
   

- Advertisement -