Extracting VarBinary(MAX) column to Flat File - Facing Issue.

  • nishav2 (8/22/2014)


    Thanks for your reply.

    The problem I cannot use a staging table since the data is sensitive data.

    You're saying that your normal data contains clear-text SSNs? And that you can't build a staging table in that same database? :blink:

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.
    "Change is inevitable... change for the better is not".

    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)
    Intro to Tally Tables and Functions

  • Jeff Moden (8/24/2014)


    nishav2 (8/22/2014)


    Thanks for your reply.

    The problem I cannot use a staging table since the data is sensitive data.

    You're saying that your normal data contains clear-text SSNs? And that you can't build a staging table in that same database? :blink:

    A staging table with the right COLUMN Permissions for the sensitive data looks just about right for this application.

    😎

  • though MS documentation says that Conversion from DT_STR to DT_BYTES is a legal conversion, Nether data conversion or derived column column compopnents seems be doing this right with out throwing a cast error.

    http://msdn.microsoft.com/en-us/library/ms141704.aspx

    The only way i was able to cast is using the script componenet.

    Row.OUPUTCOLUMN = System.Text.Encoding.UTF8.GetBytes(Row.INPUTCOLUMN);

    Not sure if your case how far this will be helpful.

    Thanks

    rm

  • Thanks guys for all your valuable suggestions. Will give it a try by using script task..

Viewing 4 posts - 16 through 18 (of 18 total)

You must be logged in to reply to this topic. Login to reply