Re: SQL Object Transfer Task

From: Allan Mitchell (allan_at_no-spam.sqldts.com)
Date: 06/07/04


Date: Mon, 7 Jun 2004 08:49:24 +0100

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@yahoo.com> wrote in message
news:A563AE44-DA80-44F3-8D99-2613C0975478@microsoft.com...
> 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.
>
> 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.
>
> I have no clue how to compute this constant, BOL doesn't offer much help.
>
> Any pointers please.
>
> Eguru007
>


Relevant Pages

  • Re: Automate setting permissions to databases (SQL 2005)?
    ... Roles and Permissions ... http://msdn2.microsoft.com/en-us/library/ms345408.aspx Moving ... for SQL Server ... with a script instead of doing this manually in SQL Server Management ...
    (microsoft.public.sqlserver.security)
  • msde 2000 save database schema
    ... I am running MSDE 2000 and will shortly be moving to sql server. ... there a way using osql to output a script to allow me to easily re- ...
    (microsoft.public.sqlserver.msde)
  • Re: Error 15401 using sp_grantlogin (not addressed by current KB articles)
    ... Restarting Windows 2000 resolved the problem for this particular account, ... confused when it sees a duplicate SID. ... > One way to get SQL Server to agree with the renamed NT ... > Preview (to ensure the script was created), ...
    (microsoft.public.sqlserver.security)
  • Re: SQL Security
    ... except I'm having problems making it work in a script. ... ;Set properties of DB objects and open connection to database ... > from Books Online (within the SQL Server program group): ... > communicate with SQL Server. ...
    (microsoft.public.sqlserver.server)
  • Re: Scripting a SQL database
    ... Virtually everything SQL Server Enterprise Manager does can be ... To run the generated script in ASP, ... You can also create a DTS (Data Transformation Package) ... that you'll want to select the "copy database objects and data" ...
    (microsoft.public.sqlserver.server)