Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I think you have almost got the expression correct except for the additional slash in the replacement string. Here are the expressions that might work for you.</p> <p><strong>Expression #1:</strong> Removes all double quotes within a given string.</p> <pre><code>REPLACE(COLA, "\"", "") </code></pre> <p><strong>Expression #2:</strong> Replaces all <strong>double</strong> occurrences of double quotes with <strong>single</strong> occurrence of double quotes.</p> <pre><code>REPLACE(COLA, "\"\"", "\"") </code></pre> <p>Here is an example that demonstrates expression #1:</p> <ol> <li>Screenshot #<strong>1</strong> shows the CSV file that will be read by a package.</li> <li>Screenshot #<strong>2</strong> shows the <code>Derived Column transformation</code> inside the <code>Data Flow task</code> that will replace all double quotes within the first column named as <strong>Header</strong>.</li> <li>Screenshot #<strong>3</strong> shows data in the table after the package execution. Notice that the double quotes in second column are left as it is because there is no expression to replace them.</li> </ol> <p>Here is an example that demonstrates expression #2:</p> <ol> <li>This example will use the same file as in example 1. Refer screenshot #<strong>1</strong>.</li> <li>Screenshot #<strong>4</strong> shows the <code>Derived Column transformation</code> inside the <code>Data Flow task</code> that will replace all <strong>double</strong> occurrences of double quotes with <strong>single</strong> occurrence of double quotes within the first column named as <strong>Header</strong>.</li> <li>Screenshot #<strong>5</strong> shows data in the table after the package execution. Notice that the double quotes in second column are left as it is because there is no expression to replace them.</li> </ol> <p>Hope that helps.</p> <p><strong>Screenshot #1:</strong></p> <p><img src="https://i.stack.imgur.com/ODaKG.png" alt="1"></p> <p><strong>Screenshot #2:</strong></p> <p><img src="https://i.stack.imgur.com/38krQ.png" alt="2"></p> <p><strong>Screenshot #3:</strong></p> <p><img src="https://i.stack.imgur.com/2MaKV.png" alt="3"></p> <p><strong>Screenshot #4:</strong></p> <p><img src="https://i.stack.imgur.com/6r5hA.png" alt="4"></p> <p><strong>Screenshot #5:</strong></p> <p><img src="https://i.stack.imgur.com/gD4b4.png" alt="5"></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload