Re: CFQuery Select and single quotes in string

2011-06-10 Thread Carl Von Stetten
What DBMS are you using? MSSQL, MYSQL, Access (bleeackk!), other? MSSQL uses single quotes in the WHERE clause. However, if you use cfqueryparam for all of your where clause pieces, single quotes in your strings should pass through in the database request just fine. What is the data type of t

re: CFQuery Select and single quotes in string

2011-06-10 Thread Jason Fisher
FROM PlaysCalled WHERE PlaysCalled.Formation = AND PlaysCalled.Play = AND PlaysCalled.BallCarrier = From: "Jim Brundle" Sent: Friday, June 10, 2011 9:15 AM To: "cf-talk" Subject: CFQuery Select and single quotes in st

CFQuery Select and single quotes in string

2011-06-10 Thread Jim Brundle
I'm doing a look up like this: SELECT Formation, Play, BallCarrier, YardsGained, Result FROM PlaysCalled WHERE (((PlaysCalled.Formation)="#Form.Formation#") AND ((PlaysCalled.Play)="#Form.Play#") AND ((PlaysCalled.BallCarrier)="#Form.BallCarrier#")); In some cases, the Ball Carrier's