472,127 Members | 2,101 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,127 software developers and data experts.

Information_schema.columns

13
if I select character_maximum_length from INFORMATION_SCHEMA.COLUMNS
if returns -1 on columns that are defined as varchar(max)
is this normal???
Apr 11 '08 #1
1 2033
ck9663
2,878 Expert 2GB
It's because varchar(max) has no defined length in character. It was added in sql2005 to accommodate those datatypes that could potentially exceed 8000 characters. Specially that sql2005 have improved it's support to XML data type. As of today, it can accommodate up to 2GB of data. That's why it's not giving you a definite character length.

-- CK
Apr 12 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

5 posts views Thread by Pachydermitis | last post: by
reply views Thread by Mark Johnson | last post: by
1 post views Thread by HSalim | last post: by
14 posts views Thread by mike.griffin | last post: by
reply views Thread by BB | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.