July 10, 2012 at 1:05 pm
can anyone give an example where you had to use .net coding in their packages???
July 10, 2012 at 1:46 pm
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.
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
July 10, 2012 at 3:09 pm
thank you!! More example are appreciated.
July 10, 2012 at 11:18 pm
Hi Komal
You will find another example on this topic: Problem Importing CSV Files into SQL 2008...
Cheers,
Hope this helps,
Rock from VbCity
July 11, 2012 at 12:34 am
* 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
July 11, 2012 at 5:46 pm
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
July 12, 2012 at 9:34 am
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.
July 12, 2012 at 10:57 am
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
July 19, 2012 at 9:18 am
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