<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>14 Apr 2018 12:44:00 Z</lastBuildDate><pubDate>12 Apr 2018 23:29:00 Z</pubDate><description>Hi All&#13;
&#13;
I am needing some advice constructing the contents of a variable to be passed to SQL in an insert statement where the contents of the variable contains an apostrophe.&#13;
&#13;
I have tried replacing "'"with "''" using:&#13;
&#13;
Replace(MyString,"","''")&#13;
&#13;
I am still getting a failed insert when using HExecuteSQLQuery.&#13;
&#13;
Any ideas on the best way to handle this?&#13;
&#13;
Cheers&#13;
André</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65206-sql-insert-and-apostrophe/read.awp</link><title>SQL Insert And Apostrophe</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65206-sql-insert-and-apostrophe-65220/read.awp</comments><pubDate>14 Apr 2018 12:44:00 Z</pubDate><description>Hi King&#13;
&#13;
Will test that.&#13;
&#13;
In the meantime I have removed the PK from the analysis and reverted to HAdd and WX is not trashin…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65206-sql-insert-and-apostrophe-65220/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65206-sql-insert-and-apostrophe-65220/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65206-sql-insert-and-apostrophe/read.awp">SQL Insert And Apostrophe</source><title>Re: SQL Insert And Apostrophe</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65206-sql-insert-and-apostrophe-65217/read.awp</comments><pubDate>14 Apr 2018 00:09:00 Z</pubDate><description>Andre&#13;
&#13;
Pls see below sample if it works out for you:&#13;
&#13;
sSingleQ is string = "''"&#13;
s2SingleQ is string = "''"&#13;
sDesc is string…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65206-sql-insert-and-apostrophe-65217/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65206-sql-insert-and-apostrophe-65217/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65206-sql-insert-and-apostrophe/read.awp">SQL Insert And Apostrophe</source><title>Re: SQL Insert And Apostrophe</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65206-sql-insert-and-apostrophe-65209/read.awp</comments><pubDate>13 Apr 2018 07:09:00 Z</pubDate><description>Hi Fabrice&#13;
&#13;
I have tried the double quote and "\'" and of course neither work. The db does take it from any other tool - doubl…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65206-sql-insert-and-apostrophe-65209/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65206-sql-insert-and-apostrophe-65209/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65206-sql-insert-and-apostrophe/read.awp">SQL Insert And Apostrophe</source><title>Re: SQL Insert And Apostrophe</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65206-sql-insert-and-apostrophe-65207/read.awp</comments><pubDate>13 Apr 2018 00:52:00 Z</pubDate><description>Hi André,&#13;
&#13;
AFAIK, the best way is to use hadd instead of an insert statement, but if you insist, and if I remember correctly y…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65206-sql-insert-and-apostrophe-65207/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65206-sql-insert-and-apostrophe-65207/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/65206-sql-insert-and-apostrophe/read.awp">SQL Insert And Apostrophe</source><title>Re: SQL Insert And Apostrophe</title></item></channel></rss>
