> You should use cfqueryparam *everywhere* you could specify
> a literal value.

> This includes SELECT, INSERT, UPDATE and DELETE statements
> as well as any DDL statements that can accept literal values.

Column defaults and create sequence statements are the only DDL
statements I can think of that would...

.... okay, create view if the view includes a literal in a join or
where clause ...

Though ... that raises the question of whether all db's support bind
parameters in a create view statement... I don't see there being any
real benefit to it actually, given that the purpose of bind parameters
(security issues notwithstanding, since you wouldn't typically let a
user execute a process that creates a view) is to allow pre-generated
execution plans for performance purposes, which a view already does
when you create it. Now, if you use a select statement against that
view with a literal in a where clause, then you would want bing
parameters again because you need a separate execution plan.


s. isaac dealey   954.522.6080
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:210622
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