This is not exactly within a cf sql statement, but... If you can be sure that your phone numbers are 10 digit strings you can format your output like this:
<cfset tel="8005551212"> <cfoutput>tel=(#left(tel,3)#) #mid(tel,4,3)#-#right(tel,4)#</cfoutput> The output would look like this: tel=(800) 555-1212 > How do I format a phone number (###) ###-#### within my cf sql > statement? My backend is sql 2000. Thanks in advance. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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

