• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

SQL 2008 SSIS Question - How to insert a double quote.

Collapse
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    SQL 2008 SSIS Question - How to insert a double quote.

    I don't usually post in this forum but I've got a quick SSIS question that I can't figure out.

    I'm doing an SSIS data transform from an ADO.Net connection to a flat file and I'm using the Derived Column Transformation Editor to reformat a field. How do I insert a " (double quote) into the reformatted field? I can't seem to find any protection characters (""" or / etc) and there is no CHR function available so I can't use CHR(034). So how's it done?

    For example - I want the field to look like ""345"" when transformed including the quotes.

    Cheers
    ...my quagmire of greed....my cesspit of laziness and unfairness....all I am doing is sticking two fingers up at nurses, doctors and other hard working employed professionals...

    #2
    [Field A] + "\"" + [Field B]

    Or for your example

    "\"\"" + [Field with 345 as value] + "\"\""

    Comment


      #3
      Originally posted by Weltchy View Post
      [Field A] + "\"" + [Field B]

      Or for your example

      "\"\"" + [Field with 345 as value] + "\"\""
      Thank you that man.
      ...my quagmire of greed....my cesspit of laziness and unfairness....all I am doing is sticking two fingers up at nurses, doctors and other hard working employed professionals...

      Comment

      Working...
      X