dbTalk Databases Forums  

Re: SQL Object Transfer Task

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


Discuss Re: SQL Object Transfer Task in the microsoft.public.sqlserver.dts forum.



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

Default Re: SQL Object Transfer Task - 06-07-2004 , 02:49 AM






If you create the indices by hand then you will be able to make a DROP
script and a CREATE script. This will allow you to DROP them before moving
the data and then reapply after moving the data. If you are only moving 1 *
table then using the Transfer Objects task may be an overkill. Try a simple
datapump task.

--

----------------------------

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"eguru007" <eguru007 (AT) yahoo (DOT) com> wrote

Quote:
Hi people!

I have a situation where I need to move table data from a variable source
server to variable target server. I am using SQL Object Transfer Task and
updating the task properties from Dynamic Property Object. It works fine.
Quote:
But I need to drop indexes on target tables before copy and recreate after
copy. After spening some time I found out that DTSTransfer_ScriptOption
Constant property can be used to make this happen.
Quote:
I have no clue how to compute this constant, BOL doesn't offer much help.

Any pointers please.

Eguru007




Reply With Quote
  #2  
Old   
eguru007
 
Posts: n/a

Default Re: SQL Object Transfer Task - 06-07-2004 , 09:06 AM






Hi Allan
Thanks for your response. I am still not clear how should make this work. Let me answer few points you have raised.

I have the DDL to create indexes and I can use that at the end of the table copy using object transfer. But I would like to build index using transfer object because I have a include table name list and some times DBAs will copy only small group of tables using this list. It would be a great deal if I need to search through my big DDL file and copy one index at a time. There are more than 100 tables and around 180 indexes in a typical db.

So my question is is it possible to use DTSTransfer_ScriptOption and or DTSTransfer_ScriptOptionEx constant to make this work with in the transfer object

Hope I am making sense

Thanks
Eguru007

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

Default Re: SQL Object Transfer Task - 06-07-2004 , 10:27 AM



I have never used these options myself but I can only see that these would
be available if you were coding everything using the DTS object model.

Seeing as they are equivalent to the SQLDMO options i would probably
leverage that.



--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"eguru007" <eguru007 (AT) yahoo (DOT) com> wrote

Quote:
Hi Allan,
Thanks for your response. I am still not clear how should make this work.
Let me answer few points you have raised.

I have the DDL to create indexes and I can use that at the end of the
table copy using object transfer. But I would like to build index using
transfer object because I have a include table name list and some times
DBAs will copy only small group of tables using this list. It would be a
great deal if I need to search through my big DDL file and copy one index at
a time. There are more than 100 tables and around 180 indexes in a typical
db.
Quote:
So my question is is it possible to use DTSTransfer_ScriptOption and or
DTSTransfer_ScriptOptionEx constant to make this work with in the transfer
object.
Quote:
Hope I am making sense.

Thanks,
Eguru007



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.