dbTalk Databases Forums  

Transaction

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


Discuss Transaction in the microsoft.public.sqlserver.dts forum.



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

Default Transaction - 03-11-2005 , 12:39 PM






Hi,
I want to select data from one sql server and insert them into another, then
delete the data from first server. But I want to do it in a transaction so
that if the delete fails, the insert can be rolled back. How can I have such
transaction in a DTS packages?
Any help would be greatly appreciated.
Leila



Reply With Quote
  #2  
Old   
Darren Green
 
Posts: n/a

Default Re: Transaction - 03-11-2005 , 01:46 PM






You can use a package transaction. Please read the "Incorporating
Transactions in a DTS Package" section of Books Online-

(http://msdn.microsoft.com/library/de...-us/dtssql/dts
_addf_tx_2n8l.asp?frame=true)
(http://tinyurl.com/3zstq)

Or

(mk:@MSITStore:C:\Program%20Files\Microsoft%20SQL% 20Server\80\Tools\Books\dt
ssql.chm::/dts_addf_tx_2n8l.htm)


--
Darren Green
http://www.sqldts.com
http://www.sqlis.com

"Leila" <Leilas (AT) hotpop (DOT) com> wrote

Quote:
Hi,
I want to select data from one sql server and insert them into another,
then
delete the data from first server. But I want to do it in a transaction so
that if the delete fails, the insert can be rolled back. How can I have
such
transaction in a DTS packages?
Any help would be greatly appreciated.
Leila





Reply With Quote
  #3  
Old   
ALI-R
 
Posts: n/a

Default Re: Transaction - 03-15-2005 , 09:50 PM



shooma mitonid kkoleh DTS package raa bezarid toyeh transaction.

Reza
"Leila" <Leilas (AT) hotpop (DOT) com> wrote

Quote:
Hi,
I want to select data from one sql server and insert them into another,
then
delete the data from first server. But I want to do it in a transaction so
that if the delete fails, the insert can be rolled back. How can I have
such
transaction in a DTS packages?
Any help would be greatly appreciated.
Leila





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.