Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using LEN on a Text field
Message
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2005
Application:
Web
Miscellaneous
Thread ID:
01380482
Message ID:
01519237
Views:
30
>>>>How can we use LEN() on a Text field in SQL Server? I see this works for a Char field but what about a Text field?
>>>
>>>Do not use Text fields. use n/varchar(max) instead.
>>
>>What will you use in SQL 2000 to get length of the Text field?
>
>DATALENGTH
>
>
>BTW in these very rare cases when I have Text fields in the table I don't care about its length :-)

Thanks.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform