dbTalk Databases Forums  

How to dynamically specify which SQL objects to transfer in DTS package

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


Discuss How to dynamically specify which SQL objects to transfer in DTS package in the microsoft.public.sqlserver.dts forum.



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

Default How to dynamically specify which SQL objects to transfer in DTS package - 06-27-2006 , 08:04 AM






I am rather new to DTS, I apologize if this has already been covered
elswhere in the group - I couldn't find it.
I am trying to create a package to transfer an arbitrary number of
tables from one database to another on the same server. The criteria
is to transfer all user tables with names beginning with "SC". They
are to be dropped in the destination databse if they exist, and
re-created, all data to be transferred from source. The trick is that
I may have any number of such tables at any given time.
Can anyone assist with this? Maybe include a code sample I can use and
customize?
Greatly appreciate any help you can give.


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

Default Re: How to dynamically specify which SQL objects to transfer in DTS package - 07-01-2006 , 05:42 AM






Hello aksenenko (AT) gmail (DOT) com,


This is probably best not suited to DTS (Although it can be done)

I would look to use SQL DMO to get my tables and their scripts, I would then
look to see if the destination object existed and drop or create from there.

I would then transfer the data.


Allan




Quote:
I am rather new to DTS, I apologize if this has already been covered
elswhere in the group - I couldn't find it.
I am trying to create a package to transfer an arbitrary number of
tables from one database to another on the same server. The criteria
is to transfer all user tables with names beginning with "SC". They
are to be dropped in the destination databse if they exist, and
re-created, all data to be transferred from source. The trick is that
I may have any number of such tables at any given time.
Can anyone assist with this? Maybe include a code sample I can use
and
customize?
Greatly appreciate any help you can give.



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.