Ask a Question related to Coldfusion Database Access, Design and Development.
-
albatross07 #1
cfqueryparam messin up query
I have an access database that contain a linked table which is an view within
Oracle the connection works fine. when I query the View/table and use a char
datatype against a char filed and use cfqueryparam i get no rows back.
If I take out the cfqueryparam it works fine. I have confirmed that I have the
correct datatypes:
THIS WORKS:
SELECT
[LAWSON_SHC_EMPLOYEE_V].[LAST_NAME]
FROM
LAWSON_SHC_EMPLOYEE_V
WHERE
LAWSON_SHC_EMPLOYEE_V.LAST_NAME= '#form.Lname#'
THIS DOESN'T WORK:
SELECT
[LAWSON_SHC_EMPLOYEE_V].[LAST_NAME]
FROM
LAWSON_SHC_EMPLOYEE_V
WHERE
LAWSON_SHC_EMPLOYEE_V.LAST_NAME= <cfqueryparam value="#ucase(form.Lname)#"
cfsqltype="cf_sql_char">
we have policy of using cfqueryparam here at work and I need to explain to my
boss why this doesnt work it and it is started to get uncomfortable. any help
would be appreciated
Thank You
Ron
albatross07 Guest
-
cfqueryparam and mysql
I have a question, is cfqueryparam's cfsqltype attribute database dependent? For example, in the LiveDocs, there is no mention of mysql's mediumint... -
cfqueryparam usage
Hello, Ive been tightening up my querys using the cfqueryparam tag and it does also seem to help greatly with speed. Is it worth using... -
cfqueryparam
Hi, I am trying to take values passed through a form and do a search based on that, but I am getting an error Error Executing Database Query.... -
sql in operator with cfqueryPARAM
here is my query select distinct option_type, description, id from option_types where id NOT IN(<cfqueryPARAM value = "#mikeslist#" CFSQLType =... -
cfqueryPARAM problem
Viva Coldfusion Forum - 'Kudos to all who help out in the time of trouble for they shall be rescued in theirs' I am concatenating an sql statement... -
Adam Cameron #2
Re: cfqueryparam messin up query
> LAWSON_SHC_EMPLOYEE_V.LAST_NAME= '#form.Lname#'
You're not filtering on the same criterion. Could that have something to> LAWSON_SHC_EMPLOYEE_V.LAST_NAME= <cfqueryparam value="#ucase(form.Lname)#"
> cfsqltype="cf_sql_char">
do with it?
--
Adam
Adam Cameron Guest



Reply With Quote

