can anyone give an example where you had to use .net coding in their packages???

  • can anyone give an example where you had to use .net coding in their packages???

  • Sure, I had column that delimited values in it and I wanted to split that column so that it created on row for each value. The original table was like this:

    employeeid jobs

    ----------- -----

    10 Secretary, Manager, Janitor

    So I wanted it to be 3 rows:

    employeeid job

    ----------- -----

    10 Secretary

    10 Manager

    10 Janitor

    SSIS doesn't have a way to that natively.

  • thank you!! More example are appreciated.

  • Hi Komal

    You will find another example on this topic: Problem Importing CSV Files into SQL 2008...

    Cheers,

    Hope this helps,
    Rock from VbCity

  • * Handling files (renaming, copying et cetera). A script task is more flexible and robust than a File System Task. And it's easier to add a timestamp.

    * using regular expressions

    * creating complex dynamic SQL statements (easier to debug than in TSQL)

    Need an answer? No, you need a question
    My blog at https://sqlkover.com.
    MCSE Business Intelligence - Microsoft Data Platform MVP

  • Script Task Examples

    Script Component Examples

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • I will frequently use the script component as a deduper. There are other options but scripting gives me all the control in defining what a dupe really is for the current flow's context.

    I have script tasks that I put in the failure path to force a job to show a failure (generally this is when a job fails our custom validation). It is convenient to view Agent job history and see the error was in Force To Fail task.

    We also have custom components built internally.

  • I've had to use .NET scripting in SSIS to go beyond the built-in FTP capabilities. Like checking if a file is there before downloading it. I've also used scripting to call an outside DLL for encryption/decryption of files based on PGP-style asymetric keys.

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • I've had to use them for SFTP (via psftp), and for connecting to web services (via DLLs).

    Ben

Viewing 9 posts - 1 through 8 (of 8 total)

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