Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Length of Text Field
Message
General information
Forum:
ASP.NET
Category:
Databases
Title:
Length of Text Field
Miscellaneous
Thread ID:
00922564
Message ID:
00922564
Views:
59
I am trying to create a Select statement to get any records where a text field is not blank. For a character field, I can do:

SELECT field1 FROM table1 WHERE LEN(field1) > 0

but if I try to do the same thing with a text field, I get:

"Argument data type text is invalid for argument 1 of len function."

How do I test the length or not empty of a text field? Thanks in advance for any assistance.

Kind Regards,

Mat
Matthew Kennedy
Decision Support Technology Inc.

"I try to take one day at a time, but sometimes several days attack me all at once." ~ Ashleigh Brilliant

New Jersey Dot Net User Group
Next
Reply
Map
View

Click here to load this message in the networking platform