Hi Cindrella,
You can never change the length of a TEXT data type. It is fixed and chosen for usage only when you store huge content into a column.
text - Variable-length data with a maximum length of 2^31 - 1 characters
Also when you have decided to use text datatype, be sure that you use that COLUMN at last in all your sql statements. If you use them in between in your sql queries, it may vanish and you got to search that, wondering where it went.
Should use this way
Code:
Select SomeCol1, SomeCol2, SomeCol3, TextCol1, TextCol2 from tablename
Dont use this way
Code:
Select * from tablename
(Comment - Text columns could be the 2nd, 4th columns in your table)
OR
Code:
Select SomeCol2, TextCol1, TextCol2, SomeCol1, SomeCol3 from Tabelname
Just take a look at this page to know about SQL server datatypes,
Choosing SQL Server 2000 Data Types
I assume you would have got this error String or binary data would be truncated when using varchar(8000) datatype. That is because one row can be of size 8060 at the maximum. I have already posted similar reply
here. You may want to take a look at it.
Hope that explains.
Cheers!
_________________________
-Vijay G

Strive for Perfection
