Stacey, are you experiencing problems withthe SQL once retrieved? I had a similar concern but found OScript knew what wasgoing on and did not display or use the backslashes.
Phil
From:eLink Discussion: Livelink Builder Discussion[mailto:componentbuilder@elinkkc.opentext.com] Sent: 21 July 2009 22:22To: eLink RecipientSubject: Embedding single quotesin SQL select statement
Embedding single quotes in SQL select statement
Posted by staceyl (Lee-Curbean, Stacey) on 2009/07/21 17:18
Created a custom module that allows a user to enter a sql statement in the admin index. The sql statement is stored in the kini table. When I retrieve the statement from the kini table, LL automatically escapes the single quotes with a backslash. How should single quotes be embedded to avoid this issue? Or how do I remove the backslash escape characters? I have tried the Str.ReplaceAll but this doesnot work. Here is the sql statement: select title as "Name", textattribute5 as "Routing Number", textattribute1 as "Supplier Name", textattribute2 as "Invoice Number", dateattribute1 as "Invoice Date", numberattribute1 as "Invoice Amount", priority as "Priority" from wftask where state = 'ASSIGNED'