Ask a Question related to Coldfusion Database Access, Design and Development.
-
safrican1 #1
Problem with Dynamic Update Query
I am having a problem with a dynamic query I create a string which will be
inserted into the Query tag
<cfQuery>
Update Table
Set #MyVar#
</cfQuery>
the value of myvar is
field1 = 'some text'
but when the system errors it shows the value of myvar to be
field1 = "some text"
I am trying to update a SQL Server 7 database which seems to only accept
string in ' (single Quotes).
If you have an idea please lte me know
safrican1 Guest
-
flash > php > mySQL update query problem
Hi all! Bit of an urgent problem. I am trying to update a mySQL database via flash and PHP where two variables are supplied, a name and a contact... -
Dynamic Query
I have this query and would like it to display different results. I have to display records for either today, yesterday, this week, last week, last... -
Dynamic Query Problem
I am using CF 5 and would like to create a dynamic query on a table based on 4 form variables. For example, if only two out of the 4 form... -
Dynamic insert query problem.
Why is not working? Thanks. <cffunction name="InsertRow" hint="Insert a row in the table" access="remote" returnType="query" > <cfargument... -
Dynamic SQL Query
Hello All, My life long persuit of true dynamic queries continues, and as usual, I hit another snag. I am try to create a dynamic search page... -
Dan Bracuk #2
Re: Problem with Dynamic Update Query
One, if you want this to work at all, you will have to use the
preservesinglequotes function in your query.
Two, if you dump myvar right before your query, how many quotes are there?
Originally posted by: safrican1
I am having a problem with a dynamic query I create a string which will be
inserted into the Query tag
<cfQuery>
Update Table
Set #MyVar#
</cfQuery>
the value of myvar is
field1 = 'some text'
but when the system errors it shows the value of myvar to be
field1 = "some text"
I am trying to update a SQL Server 7 database which seems to only accept
string in ' (single Quotes).
If you have an idea please lte me know
Dan Bracuk Guest
-
safrican1 #3
Re: Problem with Dynamic Update Query
many thanks, preservesinglequotes did work.
There are a number of fields, I have a dynamic custom tag that will update all
fields from a form. So each field is wrapped in a set of quotes and some of
them may have quotes in them, eg <textarea> fields.
safrican1 Guest



Reply With Quote

