in aswer to yuor question you can do something like 
DECLARE @myvar varchar(100);
SET @myvar = '%#Url.SearchString#%'
 Select ...
>From ...
Where p.Keywords LIKE @myvar 

The syntax may not be 100% but I hope that gets the idea across...and
just to echo everyone else...why can't you use cfqueryParam???


Adam H


On Mon, 31 Jan 2005 13:32:17 -0500, gabriel l smallman
<[EMAIL PROTECTED]> wrote:
> Hey all, anyone got a simple method to protect a var used in a where clause
> where we cannot use cfqueryparam?
> 
> Example:
> 
> OR P.Keywords LIKE '%#Url.SearchString#%'
> 
> And search string can be entered by the public
> 
> thanks
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:192408
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

Reply via email to