dbTalk Databases Forums  

Conflcit of DTS transaction and SP transaction?

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


Discuss Conflcit of DTS transaction and SP transaction? in the microsoft.public.sqlserver.dts forum.



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

Default Conflcit of DTS transaction and SP transaction? - 11-04-2003 , 09:36 AM






I am running a DTS package from a stored procedure using
XP_CMDSHELL and sending it parameters. (I just initiate
the SP from Query Analyzer). The package typically runs
properly.

When I was experimenting with the DTS package &
transaction control from DTS, I set the Package Property
to "use transactions", and I set individual workflow steps
to "Join transaction if present". On one step, I now get
an error saying "transaction context already in use by
another seesion".

What is causing this problem? Is this some conflict
between by a transaction of the Stored Procedure
initiating DTS and a transaction setup in the DTS
package?

I need to use the DTS transaction to prevent partially
committed work, which happens under the SP-transaction
only execution.



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

Default Re: Conflcit of DTS transaction and SP transaction? - 11-04-2003 , 10:17 AM






It is probably caused by you using the same connection object in > 1
transaction.



--

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


"Larry" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
I am running a DTS package from a stored procedure using
XP_CMDSHELL and sending it parameters. (I just initiate
the SP from Query Analyzer). The package typically runs
properly.

When I was experimenting with the DTS package &
transaction control from DTS, I set the Package Property
to "use transactions", and I set individual workflow steps
to "Join transaction if present". On one step, I now get
an error saying "transaction context already in use by
another seesion".

What is causing this problem? Is this some conflict
between by a transaction of the Stored Procedure
initiating DTS and a transaction setup in the DTS
package?

I need to use the DTS transaction to prevent partially
committed work, which happens under the SP-transaction
only execution.





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.