Pass double-quote inside a string via flashvars and SWFObject?

Hi All,
Consider some SWFObject code like this:
flashvars.data1 = "{"requestId":14979,"email":"[email protected]","zip":"12345"}";
flashvars.data2 = '{"requestId":14979,"email":"[email protected]","zip":"12345"}';
If I host my SWF in IE, FlexGlobals.topLevelApplication.parameters.data1 will be a string, with double-quotes (" entities will be translated to double quotes).  However, FlexGlobals.topLevelApplication.parameters.data2 will simply be the one-character string "{".
The opposite is true in Firefox. FlexGlobals.topLevelApplication.parameters.data2 will be a string, with double-quotes (" entities will be translated to double quotes).  However, FlexGlobals.topLevelApplication.parameters.data1 will simply be the one-character string "{".
How can I pass a double-quote in a flashvar using SWFObject that works in all browsers?  I've been searching on this and haven't been able to find a straight answer...
  -Josh

This works in both IE, Firefox, and Chrome:
flashvars.data2 = escape('{"requestId":14979,"email":"[email protected]","zip":"12345"}');
Is that the way to go if you want double quotes in your string?

Similar Messages

  • Double Quotes in MaxL Strings

    I am trying to pass in a calc script string from a Perl script to a MaxL script. The calc script needs double quotes around some of the member names (yes, I know I can create aliases with underscores to work around this, but I can't believe this isn't possible). I can escape the double quote characters in Perl, no problem. But the double quotes just get stripped by MaxL. Here is an example:<BR><BR>MAXL> echo 'I am "quoting" this';<BR><BR>I am "quoting" this<BR><BR>MAXL> set X = 'I am "quoting" this';<BR><BR>MAXL> echo $X;<BR><BR>I am quoting this<BR><BR>MAXL><BR><BR>There is nothing in the docs about escaping double quote characters. I've tried using backslash, no luck there. I've tried using double double quotes and they all get stripped. I've tried doing this inside single quoted strings and double quoted strings - no joy whatsoever. The funny thing is the example above, where simply echoing the literal string works, but assigning it to a variable strips out the double quotes.<BR><BR>Does anyone know how to get double quotes into a MaxL string variable? There has to be a way...<BR><BR>Thanks,<BR><BR>James

    Yes, I've dealt with enclosing variables in double quotes in order for MaxL to parse them properly, but what I'm trying to do is use a variable that contains a double quote. Such as:<BR><BR> set QuoteVar = 'I am "quoting" this';<BR><BR>I'm trying to set substitution variables via MaxL, and some of my existing sub vars have double quotes in them so that they can be used to store member names that appear in calc scripts. As I said, I know I can accomplish this with an alias table that creates a version of the member name that doesn't need quotes, but that's a whole deal to maintain just for this one thing and it seems overly burdensome for such a simple task.<BR><BR>Also, as I said, MaxL does fine with double quotes in literal strings, it's only when assigned to variables that it always strips them out. I want to create a relatively generic script for setting sub vars, so I need to pass variables around. Just calling MaxL from Perl and passing in parameters that get converted to $1, $2, etc. causes these double quotes to get stripped.<BR><BR>So, is there any way around this?<BR><BR>Thanks,<BR><BR>James

  • How to store double quote into a string?

    How to store double quote into a string?
    What I mean is:
    suppose I want to save the following sentence into string s:
    What is the syntax?
    Thanks a lot!

    String s = "<a href=\"../jsp/Logout.jsp\">"
    check out this page
    http://java.sun.com/docs/books/tutorial/index.html
    Hope this helps

  • How do I pass single quotes into a string variable?

    Thanks for any help?
    Example
    Select xdat, yday
    from foo
    where
    xdat = to_char(sysdate, 'mm/dd/yyyy')
    How do I pass the single quoted stuff above into a string variable?

    Thank you but that is not the same thing. I am building a dynamic sql statement and need to pass the quoted material into a statement that is quoted Is that not what my example above shows?
    My example above has a quoted string inside a string. I think this is exactly what you were asking for.

  • SQL Loader: double quotes inside double quotes

    Hello,
    I need to find a solution for loading some data that contains double quotas. The csv contains data like:
    "1";"Name1";"Name2"
    "2";"Name3 "another thing here"";"Name4"
    "3";"Name33 "thing here"";"Name "name" Name"
    The data inside the " " must be loaded exactly as it is, that means that in the DB, for row2, column2 the data must be: Name3 "another thing here". I cannot remove the qoutes.
    the CTL:
    LOAD DATA
    CHARACTERSET AL32UTF8
    INTO table table_name
    APPEND
    FIELDS TERMINATED BY ';' OPTIONALLY ENCLOSED BY '\"'
    TRAILING NULLCOLS
    Column1,
    Column2,
    Column3
    Could anyone help on this?

    try with this ctl
    LOAD DATA
    CHARACTERSET AL32UTF8
    INTO table table_name
    APPEND
    FIELDS TERMINATED BY ';' ENCLOSED BY '"'
    TRAILING NULLCOLS
    Column1,
    Column2,
    Column3
    )also refer to
    here and here
    for detailed explanations and instructions

  • How to replace double quotes with a single quote in a string ?

    Hi All:
    Can some one tell me how to replace double Quote (") in a string with a single quote (') ? I tried to use REPLACE function, but I couldn;t get it worked.
    My example is SELECT REPLACE('STN. "A"', '"', ''') FROM Dual --This one throws an error
    Thanks,
    Dima.

    Whether it is maybe not the more comfortable way, I like the quoting capabitlity from 10g :
    SQL> SELECT REPLACE('STN. "A"', '"', q'(')') FROM Dual;
    REPLACE(
    STN. 'A'{code}
    Nicoals.                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • FTP Adapter: double quotes in csv file

    Hello,
    I have a BPEL (10.1.3.3) process in polling with the FTP Adapter on a CSV (with a ; as separator) file with native format translation. In the following the xsd generated:
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:nxsd="http://xmlns.oracle.com/pcbpel/nxsd"
    targetNamespace="http://namespace1.com/bpel/LoadRivenditoriAdapter"
    xmlns:tns="http://namespace1.com/bpel/LoadRivenditoriAdapter"
    elementFormDefault="qualified"
    attributeFormDefault="unqualified" nxsd:encoding="Cp1252" nxsd:hasHeader="false" nxsd:stream="chars" nxsd:version="NXSD">
    <xsd:element name="Accounts">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="Account" minOccurs="1" maxOccurs="unbounded">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="DITTA" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy=";">
    </xsd:element>
    <xsd:element name="VIA" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy=";">
    </xsd:element>
    <xsd:element name="CAP" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy=";">
    </xsd:element>
    <xsd:element name="CITTA" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy=";">
    </xsd:element>
    <xsd:element name="PROV" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy=";">
    </xsd:element>
    <xsd:element name="REGIONE" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="${eol}">
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    Some fields in the CSV file can have double quotes (") inside the values like:
    "value1""";value2;value3";value4
    When this happens, the adapter reject the file. How can i solve this issue? There is some option to set inside the XSD?
    Thank you in advance.
    Riccardo

    Thank you for your help, but I've already tried with the quotedBy atribute and it doesn't work. The double quote character can occur multiple times inside the single value and it's not representing a delimiter: it's a part of the field value. For me it's not important, it could be ignored, but the problem is that I don't know how, since the adapter fails to read the file rejecting it.
    Riccardo

  • How to replace one double quotes with two double quotes in XSLT

    How can I replace one double quote to a two double quote in a string in XSLT
    I am passing the parameter string to XSLT template contains the value as
    <xsl:variable name="Description">Hi! "How are you</xsl:variable>
    <xsl:variable name="VQuotes">""</xsl:variable>
    I nead the output as
    Hi! ""How are you.
    Tried with Translate function, but it did not work out
    <xsl:element name="DESCRIPTION_SHORT">
              <xsl:value-of select="translate($Description,'&quot;', VQuotes)" />
            </xsl:element>But it is giving the same result as Hi! "How are you
    When I tried with
    <xsl:element name="DESCRIPTION_SHORT">
              <xsl:value-of select="translate($Description,'&quot;', 'BB')" />
            </xsl:element>
    It gave the result as
    Hi! BHow are you.
    It is replacing only one character with one. how to make it for two characters.
    Am I doing anything wrong in syntax?
    Please help.
    Regards, Vignesh S

    Hi Vignesh,
    Try this.
    Its a two step process:
    Step1: Add the following template would be "called" to do the replacement as your want:
    <xsl:template name="string-replace-all">
    <xsl:param name="text" />
    <xsl:param name="replace" />
    <xsl:param name="by" />
    <xsl:choose>
    <xsl:when test="contains($text, $replace)">
    <xsl:value-of select="substring-before($text,$replace)" />
    <xsl:value-of select="$by" />
    <xsl:call-template name="string-replace-all">
    <xsl:with-param name="text"
    select="substring-after($text,$replace)" />
    <xsl:with-param name="replace" select="$replace" />
    <xsl:with-param name="by" select="$by" />
    </xsl:call-template>
    </xsl:when>
    <xsl:otherwise>
    <xsl:value-of select="$text" />
    </xsl:otherwise>
    </xsl:choose>
    </xsl:template>
    Step2: Call the above templeate in the place where you want to call, like this:
    <!--Define the variables-->
    <xsl:variable name="Description">Hi! "How are you</xsl:variable>
    <xsl:variable name="sQuotes">"</xsl:variable>
    <xsl:variable name="VQuotes">""</xsl:variable>
    <!--Following call the template which you have defined in step1-->
    <xsl:element name="DESCRIPTION_SHORT">
    <xsl:variable name="myVar">
    <xsl:call-template name="string-replace-all">
    <xsl:with-param name="text" select="$Description" />
    <xsl:with-param name="replace" select="$sQuotes" />
    <xsl:with-param name="by" select="$VQuotes" />
    </xsl:call-template>
    </xsl:variable>
    <xsl:value-of select="$myVar" />
    </xsl:element>
    I have tested this and works. And outputs as the following with two-double quote as you want.
    <DESCRIPTION_SHORT>Hi!
    ""How are you</DESCRIPTION_SHORT>
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • How to replace single quote with double quote

    hai all,
    i have a problem,
    i am trying insert a string containing single quote into ms-access database.
    it is giving error.
    how can i avoid this .if i replace a single quote in the text with double quote it will defenitely
    insert into database.
    in java.lang.String
    replace () will not work to replace quote with double quote.
    any otherway to solve this problem.
    please mail me to [email protected]
    thank you
    sambareddy
    inida

    java.lang.String.replace () will not work to replace quote with double quote.Really?
    String x = ...
    x.replace( "'", "\"" );

  • Single and double quotes entered in form field cause corruption?

    I am creating a database change request system using in APEX 2.2 and the main form has a description field (clob) and a API_description field (varchar2(4000)) that are text area fields on the page. The form seems to have trouble when the string data entered into the text area page items on the form contain single and double quotes.
    <br><br>
    I have pasted my test data below in this problem description(this is not true sql but it gets the point accross). I use the wizard created insert process to get the data into the db from the text fields in the wizard generated form, then use the wizard created fetch process to get the data back out and rendered on the same form. When I use the test data below, sometimes a few characters dissappear from my input data on the way out, sometime form fields go away, and their html is interspersed with the previous form field's data on the page. And I get different results on different tests with the same data.
    <br><br>
    Do I have to do something special for a vanilla htmldb text page item on a form to be able to receive single and double quotes in the string input in order to avoid that string data confusing the processing on the way in to the Database or on the way out for rendering?
    <br><br>
    Do I have to escape the characters? How do I do this?
    <br><br>
    The "varchar2(1) := ‘A’" part of the below TEST DATA string seem to cause the most trouble. The behavior is erratic - sometimes the pattern works, sometimes html is interspersed in one place, sometimes another (on the way back out)
    <br><br>
    START TEST DATA:
    Add column pcl3_data_ind varchar2(1) to edc_tran,edc_log, edc_recreate_tran table
    Or
    Create a file with following sql in it
    Insert into sometable values(‘A’,sysdate);
    Or
    create new table as follows
    create table “someschema”.“sometable”
    (id number not null,
    Name varchar2(20) not null,
    Join_date sysdate
    Active varchar2(1) := ‘A’
    END TEST DATA:
    <br><br>
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    Here is an example of the test data being displayed after being fetched back out of oracle (this will look like gibberish when rendered in the forum system (end of problem description except for example):
    <br><br>
    env
    Add column pcl3_data_ind varchar2(1) to edc_tran,edc_log, edc_recreate_tran table
    Or
    Create a file with following sql in it
    Insert into sometable values(‘A’,sysdate);
    Or
    crete new tableas follws
    crate table “somesca”.“sometable”
    har2(20) not null,
    Join_date sysdate
    Active varchar2(1) := ‘A’
    woextarea>
    <a class="eLink" title="Edit" href="javascript:popupURL('f?p=4000:371:204538675714370::::P371_ID,FB_FLOW_ID,FB_FLOW_PAGE_ID:1034609472735510,104,2');" tabindex="999"><img src="/i/e.gif" alt="Edit" class="eLink" /></a></td></tr><tr><td nowrap align="right"><label ...

    I found a good php related post that has a nice set of the potentially problematic characters (this is in the context of word pasted into IE I think). I am pretty confident that at least single curly quotes do not work well in apex 2.2). I would not be surprised if some of the others were trouble as well.:
    http://lists.evolt.org/archive/Week-of-Mon-20030602/141975.html
    here is the list
    $trans_tbl[chr(34)] = '"' ;          //      quote
              $trans_tbl[chr(38)] = '&' ;          //      ampersand
              $trans_tbl[chr(60)] = '<' ;          //      less-than
              $trans_tbl[chr(62)] = '>' ;          //      more-than
              $trans_tbl[chr(128)] = '€' ;     //      euro
              $trans_tbl[chr(129)] = '€' ;      //     euro
              $trans_tbl[chr(130)] = '‚' ;      //     low quote
              $trans_tbl[chr(131)] = 'ƒ' ;      //     florin
              $trans_tbl[chr(132)] = '„' ;      //      double low quote
              $trans_tbl[chr(133)] = '…' ;      //     ellipsis
              $trans_tbl[chr(134)] = '†' ;     //     dagger
              $trans_tbl[chr(135)] = '‡' ;      //     double dagger
              $trans_tbl[chr(136)] = 'ˆ' ;      //     circumflex
              $trans_tbl[chr(137)] = '‰' ;      //     per thousand
              $trans_tbl[chr(138)] = 'Š' ;      //     S caron
              $trans_tbl[chr(139)] = '‹' ;      //     left angle quote
              $trans_tbl[chr(140)] = 'Œ' ;      //     OE ligature
              $trans_tbl[chr(142)] = 'Ž' ;      //     Z caron
              $trans_tbl[chr(145)] = '‘' ;      //     left single quote
              $trans_tbl[chr(146)] = '’' ;      //     right single quote
              $trans_tbl[chr(147)] = '“' ;      //     left double quote
              $trans_tbl[chr(148)] = '”' ;      //     right double quote
              $trans_tbl[chr(149)] = '•' ;      //     bullet
              $trans_tbl[chr(150)] = '–' ;      //     en dash
              $trans_tbl[chr(151)] = '—' ;      //     em dash
              $trans_tbl[chr(152)] = '˜' ;      //     small tilde
              $trans_tbl[chr(153)] = '™' ;      //     trademark
              $trans_tbl[chr(154)] = 'š' ;      //     small s caron
              $trans_tbl[chr(155)] = '›' ;      //     right angle quote
              $trans_tbl[chr(156)] = 'œ' ;      //     oe ligature
              $trans_tbl[chr(158)] = 'ž' ;      //      small z caron
              $trans_tbl[chr(159)] = 'Ÿ' ;      //     Y with diaeresis
    <br>
    -Geoffrey

  • Double quotes issue with GUI_UPLOAD

    Hello Gurus,
    I'm uploading a tab delimited file from my PC using GUI_UPLOAD. I've a description field (Char 40) in my input file which contains characters like double quotes or commas or single quotes. Whenever there is a comma or a double quote in the desc field in my input file, the field value is uploaded into the program as the actual value with double quotes in front of the value and at the end of the value.
    Say if I'm uploading <b>steel 1"</b>, then it is uploaded into the program as <b>"steel 1""</b>. Any ideas why is this and how to fix it.
    JJ

    Appreciate ur answer Anand. I want to know why I get the value with double quotes in front of it and towards the end of it. I know that I can get rid of the extra double quotes with offsetting and replace statement...Thats not what I was expecting. I want to know why the extra double quotes are coming into the picture.
    FYI, I'm on ECC 6.0 and the snippet of my code is:
      DATA: lv_file TYPE string.
      lv_file = p_file.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          filename            = lv_file
          filetype            = 'ASC'
          has_field_separator = 'X'
        TABLES
          data_tab            = itab_file.

  • Can't import csv fields starting with double quotes but lack ending ones

    Hi all,
    When I'm trying to used external table to import a csv file, specified as using comma as delimiter optionally enclosed by double quotes, some records are rejected because a field in the record has starting double quotes, but without ending ones.
    Assume the customer really want these starting double quotes, how do I change my external table specification such that these starting double quotes are treated as part of the field data and can be successfully inserted into db?
    Many thanks.

    I have no access to Oracle during weekends, so nothing can be tested. So here it goes:
    Suggestion: DELIMITED BY '","' and of course omitt ENCLOSED BY '"'
    You will have to update each row of the rows just loaded setting the first_field to substr(first_field,2) and the last_field to substr(last_field,-2)
    If all the fields are not enclosed in double quotes (TRUE for strings and FALSE for numbers and dates) the situation (syntax diagrams allow two delimiters only) is somehow more complicated, anyway you can specify DELIMITED BY ',' and update all varchar2 fields in each row of the rows just loaded setting the varchar2_field to substr(varchar2_field,2,length(varchar2_field) - 2).
    Regards
    Etbin
    After posting I noticed it's difficult to distinguish between single and double quotes:
    the first DELIMITED BY should read {single quote){double quote}{comma}{double quote}{single quote)
    the ENCLOSED BY should read {single quote){double quote}{single quote)
    Message was edited by: Etbin
    user596003

  • QUOTED IDENTIFIER (DASH in COLUMN NAME) - and DBMS_XMLSAVE

    I HAD to create a View where the column names had embedded dashes in order to correspond to the XML I am receiving. The view contains the columns:
    V_VEND_H_XML - view name
    BATCH-UNIQUE-ID
    ADD-COUNT
    MODIFY-COUNT
    DELETE-COUNT
    REACTIVATE-COUNT
    TRANSACTION-DATE
    ACTION-TIME
    When I created it and when I reference a column I am supposed to put the column name in double quotes (").
    I am encountering 2 problems when I try to use these column.
    1. I need to do the following functions/procedures and provide the column name:
    DBMS_XMLSave.setKeyColumn(l_ctx,'"BATCH-UNIQUE-ID"');
    DBMS_XMLSave.setUpdateColumn(l_ctx,'"ADD-COUNT"');
    DBMS_XMLSave.setUpdateColumn(l_ctx,'"MODIFY-COUNT"');
    DBMS_XMLSave.setUpdateColumn(l_ctx,'"DELETE-COUNT"');
    DBMS_XMLSave.setUpdateColumn(l_ctx,'"REACTIVATE-COUNT"');
    DBMS_XMLSave.setUpdateColumn(l_ctx,'"TRANSACTION-DATE"');
    DBMS_XMLSave.setUpdateColumn(l_ctx,'"ACTION-TIME"');
    DBMS_XMLSave.setCommitBatch(l_ctx, 0);
    V_rowcount := DBMS_XMLSave.updateXML(l_ctx, v_clob);
    (I have tried with and without the double quotes - inside the require single quotes)
    In the example above, I get an error which implies that the package code is changing the case to lower case (see "batch-unique-id" below)
    ERROR at line 1:
    ORA-29532: Java call terminated by uncaught Java exception: oracle.xml.sql.OracleXMLSQLException: Column '"batch-unique-id"', specified to be a key column, does not not exits in table 'V_IFMIS_VEND_XML_H_XMIT2'.
    ORA-06512: at "SYS.DBMS_XMLSAVE", line 65
    ORA-06512: at line 48
    Does anyone know how I can make this work?

    This is a genuine bug, not specific to XE. Here is a minimal testcase:
    -- Use a fresh-from-the-seed database
    CONNECT Sys/Sys@11202 AS SYSDBA
    create edition e1 as child of Ora$Base
    alter session set edition = e1
    alter database default edition = e1
    -- Wait for MMON to switch over
    begin DBMS_Lock.Sleep(5); end;
    drop edition Ora$Base cascade
    SHUTDOWN IMMEDIATE
    STARTUP
    -- Causes ORA-00600
    begin DBMS_Output.Put_Line('Hello'); end;
    I filed bug 12758386.
    Notice that all other reported problems were user errors. I've explained those in an offline email exchange with Alex.

  • Extracting string inside double quote

    Hi,
    In perl this is really easy, but I can't get it to work correclt in java. I'm trying to extract a string that is in double quotes following a keyword...
    String: SRCH base="o=answer" filter="me" attrs=ALL
    I want to extract the first quoted value after "SRCH base="
    In perl I used: / SRCH base=\"(.*)\" /i
    In java I'm using: " SRCH base=\"(.*)\" "
    The problem is that it doesn't stop after hitting the second quote. So I get this result:
    o=answer" filter="me
    Notice that it stopped matching after hitting the third quote. Weird.
    I know this is probably really simple, but I'm stumped.
    Thanks,
    Mark

    I guess if you wrote a regex that matches any string
    that starts with ", ends with ", and has anything in
    between you could use a Matcher to find each
    occurrence, but I don't regex enough to write it :)[url #" style="display: block; background-image: url('http://www.shanghaiist.com/attachments/shang_neil/bat-signal-edit.jpg'); width: 325px; height: 217px] 

  • SSRS Report Returning Double Quote string from a Single Quote String

    Hi, I'm getting weird thing in resultset from SSRS report when executed. When I pass parameter to a report, which passes String that has single quote value to a split function , it returns rows with double quote. 
    For example  following string:
    'N gage, Wash 'n Curl,Murray's, Don't-B-Bald
    Returns: 
    ''N gage, Wash ''n Curl,Murray''s, Don''t-B-Bald
    through SSRS report.
    Here is the split function Im using in a report.
    CREATE Function [dbo].[fnSplit] (
    @List varchar(8000), 
    @Delimiter char(1)
    Returns @Temp1 Table (
    ItemId int Identity(1, 1) NOT NULL PRIMARY KEY , 
    Item varchar(8000) NULL 
    As 
    Begin 
    Declare @item varchar(4000), 
    @iPos int 
    Set @Delimiter = ISNULL(@Delimiter, ';' ) 
    Set @List = RTrim(LTrim(@List)) 
    -- check for final delimiter 
    If Right( @List, 1 ) <> @Delimiter -- append final delimiter 
    Select @List = @List + @Delimiter -- get position of first element 
    Select @iPos = Charindex( @Delimiter, @List, 1 ) 
    While @iPos > 0 
    Begin 
    -- get item 
    Select @item = LTrim( RTrim( Substring( @List, 1, @iPos -1 ) ) ) 
    If @@ERROR <> 0 Break -- remove item form list 
    Select @List = Substring( @List, @iPos + 1, Len(@List) - @iPos + 1 ) 
    If @@ERROR <> 0 Break -- insert item 
    Insert @Temp1 Values( @item ) If @@ERROR <> 0 Break 
    -- get position pf next item 
    Select @iPos = Charindex( @Delimiter, @List, 1 ) 
    If @@ERROR <> 0 Break 
    End 
    Return 
    End
    FYI: I'm getting @List value from a table and passing it as a string to split function. 
    Any help would be appreciated!
    ZK

    Another user from TSQL forum posted this code which is returning the same resultset but when I execute both codes in SQL server it works and return single quote as expected.
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/8d5c96f5-c498-4f43-b2fb-284b0e83b205/passing-string-which-has-single-quote-rowvalue-to-a-function-returns-double-quoate?forum=transactsql
    CREATE FUNCTION dbo.splitter(@string VARCHAR(MAX), @delim CHAR(1))
    RETURNS @result TABLE (id INT IDENTITY, value VARCHAR(MAX))
    AS
    BEGIN
    WHILE CHARINDEX(@delim,@string) > 0
    BEGIN
    INSERT INTO @result (value) VALUES (LEFT(@string,CHARINDEX(@delim,@string)-1))
    SET @string = RIGHT(@string,LEN(@string)-CHARINDEX(@delim,@string))
    END
    INSERT INTO @result (value) VALUES (@string)
    RETURN
    END
    GO
    ZK

Maybe you are looking for

  • Past due PurRqs are getting deleted in APO but not getting deletd in R3

    Hi folks, We have a daily job, which runs at 18:00 hrs in the evening everyday in the APO Production System.The job is to delete all past due Purchase Requisitions for last 2 years (job & variant details are mentioned below) All the past due PurRqs a

  • Apex 3.1.2 on Apex Listener 1.0.2:  Totally Non-functional

    I have ran into a huge speed bump that I have no idea how to correct. I have tried deleting my Weblogic server, deleting the apex containers, reinstalling the apex containers, upgrading the listener to the EA release and nothing works. When I try to

  • Downloading acrobat pro 9.0 and CS5 in spanish

    I have a macbook pro, and purchased CS5 design standard + acrobat pro 9 a few years ago. I now have a new mac, and when I download this version for Mac and use my series number it is not recognized. I dont know if the fact the the available versions

  • Send me these qutions of answers

    1. Strengths in technical subject ? 2. Explain best report which u did ? 3. Major events of reports ? 4. Difference between interactive and classical reports ? 5. Types of BDC’s 6. If you say session than why ? 7. If you say call transaction why? 8.

  • Airport to Airport Connection

    My brother has an iMac that only has a wired connection to the internet, but his iMac (g4 1 gHz) is airport extreme enabled. So I'm wondering if his ATV can connect to the internet through the airport extreme card in his iMac g4, even though his iMac