> Someone help me out here.. brain-fart occurring.. > Need to look at all the values in the ntext field of a > datasource, > calculate the length (in characters) of the data contained > in each > field, and select only the longest field, then display > it's length.
> So.. Something like "Max(Len(textdatafield)))" sorta.. afaik you can't really perform len() on a text or ntext field in sql server unfortunately... you'd have to query the data and return all the records to cf and then have cf perform the evaluation of length -- which could be pretty heavy overhead... I could be wrong, there could be a method of doing it within sql server, but I'm not aware of one anyway. Isaac Certified Advanced ColdFusion 5 Developer www.turnkey.to 954-776-0046 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting.

