dbTalk Databases Forums  

Possible to dynamically alter existing table structure?

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


Discuss Possible to dynamically alter existing table structure? in the microsoft.public.sqlserver.dts forum.



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

Default Possible to dynamically alter existing table structure? - 09-23-2004 , 07:54 AM






New to DTS and not a DBA, but would like to know if source contains
more fields than a target is it possible to add those fields to the
target in DTS .... actually I will be using the DTS APIs. Thanks.

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

Default Re: Possible to dynamically alter existing table structure? - 09-23-2004 , 12:51 PM






You could enumerate the information_schema views on the source and the
destination, compare the two and then construct the relevant ALTER TABLE
ADD.... statements. Your next Q will more than likely be can I then
dynamically map these columns in a DTS DataPump Task.

Yes you can. You would add the columns to the SourceColumns and
DestinationColumns properties of the Transformation object. It is doable.


"elizabeth" <ezelasky (AT) hotmail (DOT) com> wrote

Quote:
New to DTS and not a DBA, but would like to know if source contains
more fields than a target is it possible to add those fields to the
target in DTS .... actually I will be using the DTS APIs. Thanks.



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.