dbTalk Databases Forums  

Modifying destination in DataPump

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Modifying destination in DataPump in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Brandon Lilly
 
Posts: n/a

Default Modifying destination in DataPump - 10-07-2004 , 12:57 PM






On the destination tab of the DataPump task there are a list of columns at
design-time. I programatically want to add/remove columns to this list.
What property of the DTSDataPump task can I access to modify the list of
columns? I thought it might be DestinationColumnDefinitions, but there
don't appear to be any (I looped through the collection with FOR EACH and
got no results).

It is causing a problem because I run a transformation with only the columns
I want in the source and destination, but the resulting file contains ALL
column headers, but data for only the columns I told it to transform.

Thanks,

Brandon



Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Modifying destination in DataPump - 10-09-2004 , 06:12 AM






In your package you have Transformation objects. These have SourceColumns
and DestinationColumns properties which contain Column objects.
You can play around with these to get your desired result.


--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.Konesans.com


"Brandon Lilly" <brandon.lilly (AT) no_spam (DOT) medevolve.com> wrote

Quote:
On the destination tab of the DataPump task there are a list of columns at
design-time. I programatically want to add/remove columns to this list.
What property of the DTSDataPump task can I access to modify the list of
columns? I thought it might be DestinationColumnDefinitions, but there
don't appear to be any (I looped through the collection with FOR EACH and
got no results).

It is causing a problem because I run a transformation with only the
columns
I want in the source and destination, but the resulting file contains ALL
column headers, but data for only the columns I told it to transform.

Thanks,

Brandon





Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.