dbTalk Databases Forums  

DTS Copy SQL Server Objects Task

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


Discuss DTS Copy SQL Server Objects Task in the microsoft.public.sqlserver.dts forum.



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

Default DTS Copy SQL Server Objects Task - 01-28-2004 , 04:58 PM






Hi All

I'm looking for some information on how the 'Copy SQL Server Objects' task
works.

We do a nightly copy of 50+ tables from one database to another. Sometimes,
after we have made some modifications in the source database, the copy
fails.

Say the task fails on table #40, what actually happens after the failure?
Does it stop copying the remaining tables? Does it rollback what it's done?
Does it truncate and load each table individually, or in a batch.

--
Thanks
Phill Carter



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

Default Re: DTS Copy SQL Server Objects Task - 01-29-2004 , 12:36 AM






I do not use this task very often but here was my test

2 DBs (One and Two)

One contains 4 tables (1,2,3,4)
Two contains 2 tables (1,2)

Copy objects tasks says "Do not create destination objects" "Replace data"
direction is One --> Two

The replace data stage will try to delete from all tables. 3 and 4 do not
exist at the destination so should fail

I enter a row of data in 1 and 2 so I can see if anything happens to these
tables

The task fails because it could not remove data from 3 and 4 but the row of
data makes it into 1 and 2 at Two.

Hope that makes sense.


--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
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


"Phill" <no_reply_pacarter (AT) bellpotter (DOT) com.au> wrote

Quote:
Hi All

I'm looking for some information on how the 'Copy SQL Server Objects' task
works.

We do a nightly copy of 50+ tables from one database to another.
Sometimes,
after we have made some modifications in the source database, the copy
fails.

Say the task fails on table #40, what actually happens after the failure?
Does it stop copying the remaining tables? Does it rollback what it's
done?
Does it truncate and load each table individually, or in a batch.

--
Thanks
Phill Carter





Reply With Quote
  #3  
Old   
Phill
 
Posts: n/a

Default Re: DTS Copy SQL Server Objects Task - 01-29-2004 , 04:40 PM



So would it be safe to say that each destination table truncated and loaded
in turn, and a single failure does not fail the entire copy?


"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote

Quote:
I do not use this task very often but here was my test

2 DBs (One and Two)

One contains 4 tables (1,2,3,4)
Two contains 2 tables (1,2)

Copy objects tasks says "Do not create destination objects" "Replace data"
direction is One --> Two

The replace data stage will try to delete from all tables. 3 and 4 do not
exist at the destination so should fail

I enter a row of data in 1 and 2 so I can see if anything happens to these
tables

The task fails because it could not remove data from 3 and 4 but the row
of
data makes it into 1 and 2 at Two.

Hope that makes sense.


--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
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


"Phill" <no_reply_pacarter (AT) bellpotter (DOT) com.au> wrote in message
news:uKcUJJf5DHA.2188 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
Hi All

I'm looking for some information on how the 'Copy SQL Server Objects'
task
works.

We do a nightly copy of 50+ tables from one database to another.
Sometimes,
after we have made some modifications in the source database, the copy
fails.

Say the task fails on table #40, what actually happens after the
failure?
Does it stop copying the remaining tables? Does it rollback what it's
done?
Does it truncate and load each table individually, or in a batch.

--
Thanks
Phill Carter







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

Default Re: DTS Copy SQL Server Objects Task - 01-30-2004 , 01:40 AM



You can see what it is doing in the progress bar but my very small test
certainly said that what has happenened has happened and is not reversed
out.


--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
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


"Phill" <no_reply_pacarter (AT) bellpotter (DOT) com.au> wrote

Quote:
So would it be safe to say that each destination table truncated and
loaded
in turn, and a single failure does not fail the entire copy?


"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message
news:ONpFZHj5DHA.1632 (AT) TK2MSFTNGP12 (DOT) phx.gbl...
I do not use this task very often but here was my test

2 DBs (One and Two)

One contains 4 tables (1,2,3,4)
Two contains 2 tables (1,2)

Copy objects tasks says "Do not create destination objects" "Replace
data"
direction is One --> Two

The replace data stage will try to delete from all tables. 3 and 4 do
not
exist at the destination so should fail

I enter a row of data in 1 and 2 so I can see if anything happens to
these
tables

The task fails because it could not remove data from 3 and 4 but the row
of
data makes it into 1 and 2 at Two.

Hope that makes sense.


--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
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


"Phill" <no_reply_pacarter (AT) bellpotter (DOT) com.au> wrote in message
news:uKcUJJf5DHA.2188 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
Hi All

I'm looking for some information on how the 'Copy SQL Server Objects'
task
works.

We do a nightly copy of 50+ tables from one database to another.
Sometimes,
after we have made some modifications in the source database, the copy
fails.

Say the task fails on table #40, what actually happens after the
failure?
Does it stop copying the remaining tables? Does it rollback what it's
done?
Does it truncate and load each table individually, or in a batch.

--
Thanks
Phill Carter









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.