Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using LEN on a Text field
Message
From
26/07/2011 02:54:41
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2005
Application:
Web
Miscellaneous
Thread ID:
01380482
Message ID:
01519143
Views:
29
>>>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 :-)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform