Hi guys,

I�m having a problem updating a field in my MS-SQL database.

I can see what the problem is, it�s when I update a varchar from my Flash
Form... When my user puts an apostrophe (�) into the text.. Eg the word I�d
or we�d or you�d then the SQL seems to think that this is the end of the
field.

 Error Executing Database Query.
 [Macromedia][SQLServer JDBC Driver][SQLServer]Line 2: Incorrect syntax near
'd'.

  INSERT INTO tbl_020publicQuestions (interviewID, question) VALUES (31,
'Oh, and i thought i'd written a lot but in fact i hadn't written anything
at all is that really that bad or is that wrong?')

The particular field is �question�

Excuse my testing text! :)

Does anyone know how to get around this problem?  At the moment my update
SQL is:

319 :           <cfquery name="InsertQuestion" datasource="user020">
320 :           INSERT INTO tbl_020publicQuestions (interviewID, question)
321 :           VALUES (#InsertInterviewDetails.interviewID#,
'#Evaluate('form.question' & i)#')
322 :           </cfquery>
323 :           </cfloop>

Thanks very much,

Saturday




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

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