dbTalk Databases Forums  

How to use BCP with a transaction?

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


Discuss How to use BCP with a transaction? in the microsoft.public.sqlserver.dts forum.



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

Default How to use BCP with a transaction? - 05-15-2005 , 11:48 PM






Hi guys

I have a small problem. I want to use BCP with in a transaction it's this

first I execute a SQL Statement against the database and delete some data,
then
I run the BCP utility.

my problem is how to use these two with in a single transaction!

please help me

I appreciate your help and time!
thanks,
-Aruna



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

Default Re: How to use BCP with a transaction? - 05-16-2005 , 12:17 PM






You cannot. Try using DTS, after this is a DTS newsgroup. You can setup a
package level transaction that spans the Exec SQL Task to run your script
and the Data Pump task or Bulk Insert task data transfer.


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


"Aruna Tennakoon" <aruna.tennakoon (AT) gmail (DOT) com> wrote

Quote:
Hi guys

I have a small problem. I want to use BCP with in a transaction it's this

first I execute a SQL Statement against the database and delete some data,
then
I run the BCP utility.

my problem is how to use these two with in a single transaction!

please help me

I appreciate your help and time!
thanks,
-Aruna





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.