• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 431
  • Last Modified:

Longest string in SQL 2005

With the advent of VARCHAR(MAX) in 2005, is it possible to have a T-SQL variable longer than 8000 bytes?  I tried to do so and it still tops out at 8000 bytes.
1 Solution
Aneesh RetnakaranDatabase AdministratorCommented:
yes, You can have store upto 2Gb on varchar(max) datatypes
If you are getting only 8000 characters, make sure that the database compatability level is 90
Guy Hengel [angelIII / a3]Billing EngineerCommented:
> I tried to do so and it still tops out at 8000 bytes.
apart from aeeshattingals' good comment:
how do you see/notice that "limit" ?

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now