Ben, actually, you can use LEN( ) exactly like that in an sql statement. Your query should work.
-----Original Message----- From: BEN MORRIS [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 17, 2002 10:47 AM To: CF-Talk Subject: Len() Equivalent in MS SQL 2K? I am using MS SQL Server 2K. Wondering if there is an equivalent to the CF Len() function to get string length that I can use in a WHERE clause: "SELECT LastName FROM Member WHERE Len(LastName) < 5" --------------------------------------- Ben Morris Web Site Developer American Federation of Government Employees, AFL-CIO (202) 639-6448 www.afge.org ______________________________________________________________________ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

