SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Get the Column information(ole db source and ole db destination) from DTSX (SSIS package) file using...


Get the Column information(ole db source and ole db destination) from DTSX (SSIS package) file using C#

Author
Message
Anshuman Saini
Anshuman Saini
Grasshopper
Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)

Group: General Forum Members
Points: 21 Visits: 89
HI,

I have lots of SSIS packages and i have to make the column mapping sheet for the SSIS packages .

I have tried the reading SSIS (DTSX) file from C# - dot net but i was unable to get the relationship between OLE DB Source and OLE DB Destination (SSIS Package) in Dot net .

ISSUE :

Let say i have a dts package and that packages have one ole db source and one ole db destination and in that i am transferring the data from source column to destination column so now i want to make the column mapping file like Ole db source A(source column )----------->ole db destination B(destination column) like this for all the column.

Please tell me how can i do that using dot net.

Regards,

Anshuman Saini
Orlando Colamatteo
Orlando Colamatteo
SSCoach
SSCoach (18K reputation)SSCoach (18K reputation)SSCoach (18K reputation)SSCoach (18K reputation)SSCoach (18K reputation)SSCoach (18K reputation)SSCoach (18K reputation)SSCoach (18K reputation)

Group: General Forum Members
Points: 18997 Visits: 14398
What are you using from .NET? Are you trying to read the raw XML or are you using the SSIS Object Model assemblies?

__________________________________________________________________________________________________
There are no special teachers of virtue, because virtue is taught by the whole community. --Plato
Anshuman Saini
Anshuman Saini
Grasshopper
Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)

Group: General Forum Members
Points: 21 Visits: 89
Hi ,
I want to read the DTSX file from C# and read all the object from that ole db source and old db destination and how many column we have mapped from source to destination.and if we are using any other task between these two lookup , ole db command etc .so that i can make the column mapping sheet from reading DTSX file.

Regards,
Anshuman saini
Orlando Colamatteo
Orlando Colamatteo
SSCoach
SSCoach (18K reputation)SSCoach (18K reputation)SSCoach (18K reputation)SSCoach (18K reputation)SSCoach (18K reputation)SSCoach (18K reputation)SSCoach (18K reputation)SSCoach (18K reputation)

Group: General Forum Members
Points: 18997 Visits: 14398
It should only require a small amount of code to do that using the SSIS Object Model:

Integration Services Programming

__________________________________________________________________________________________________
There are no special teachers of virtue, because virtue is taught by the whole community. --Plato
Anshuman Saini
Anshuman Saini
Grasshopper
Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)

Group: General Forum Members
Points: 21 Visits: 89
Thanks a lot for your reply , but i have tried this url but i didn't get suitable information.

Can you please tell me which one you are telling
Orlando Colamatteo
Orlando Colamatteo
SSCoach
SSCoach (18K reputation)SSCoach (18K reputation)SSCoach (18K reputation)SSCoach (18K reputation)SSCoach (18K reputation)SSCoach (18K reputation)SSCoach (18K reputation)SSCoach (18K reputation)

Group: General Forum Members
Points: 18997 Visits: 14398
Here are some code samples to help you get started.

http://www.sqlis.com/sqlis/post/Exploring-packages-in-code.aspx

__________________________________________________________________________________________________
There are no special teachers of virtue, because virtue is taught by the whole community. --Plato
Anshuman Saini
Anshuman Saini
Grasshopper
Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)Grasshopper (21 reputation)

Group: General Forum Members
Points: 21 Visits: 89
Thanks for reply Smile
i have already written the code to get the executable task from SSIS using C# but i need to access the column of ole db source and ole db destination with relation.

Please help if you have something regarding this
Orlando Colamatteo
Orlando Colamatteo
SSCoach
SSCoach (18K reputation)SSCoach (18K reputation)SSCoach (18K reputation)SSCoach (18K reputation)SSCoach (18K reputation)SSCoach (18K reputation)SSCoach (18K reputation)SSCoach (18K reputation)

Group: General Forum Members
Points: 18997 Visits: 14398
Follow the first link I posted earlier and follow Data Flow Properties Reference to see some links showing how to read the properties of various Data Flow Components.

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


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search