Hey Eric - I tried this out myself and it worked fine, Are you sure the problem isn't that the SET is missing in the front? SET @QUERY= 'SELECT email FROM table WHERE donotemail = ''Y'''
If I do a print @Query of this afterwards I get the string back properly -----Original Message----- From: Eric Creese [mailto:[EMAIL PROTECTED] Sent: Monday, January 24, 2005 5:33 PM To: CF-Talk Subject: RE: Need single quotes in SQL but is stored inside variable. Nope that does not work, rember I need the single quotes in the statement. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:191606 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

