len() works as a function. but you have to do something like this.... SELECT Len(email) as 'Tony', firstname, lastname FROM registrants WHERE 'Tony' > '5'
oh, how do i get on the cfguru list? tony -----Original Message----- From: Adam Churvis [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 17, 2002 7:45 PM To: CF-Talk Subject: Re: Len() Equivalent in MS SQL 2K? I believe you're looking for the DataLength() function. Respectfully, Adam Phillip Churvis Advanced Intensive ColdFusion MX Training http://www.ColdFusionTraining.com E-mail: [EMAIL PROTECTED] Phone: 770-446-8866 ----- Original Message ----- From: "BEN MORRIS" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Wednesday, July 17, 2002 11:47 AM 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 > > > ______________________________________________________________________ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm 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

