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)
 Data type to use for column >8000

Author  Topic 

Aaron
Starting Member

20 Posts

Posted - 2007-08-21 : 11:52:35
I have a column that potentially could contain more than 8000 characters. What is my option since varchar is max 8000?

Any help would be appreciated.

Aaron

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-08-21 : 12:41:57
No, you are wrong.
For SQL Server 2005, you can use VARCHAR(MAX) which is 2147483647 characters.



E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page

Aaron
Starting Member

20 Posts

Posted - 2007-08-21 : 12:57:48
I did not know that! Thank you very much, Peso.

Aaron
Go to Top of Page
   

- Advertisement -