dbTalk Databases Forums  

Multiple Data Driven Query Tasks

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


Discuss Multiple Data Driven Query Tasks in the microsoft.public.sqlserver.dts forum.



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

Default Multiple Data Driven Query Tasks - 02-09-2004 , 05:31 AM






I have 4 Data Driven Query Tasks executing within a Package. All of these perform inserts/updates/deletes on destination tables using data sourced from staging tables within the same database (so the Binding and Destination tables for all 4 Tasks have the same connections). When more than one of the Tasks has the 'Join Transaction' option set (I need this for rollback purposes) I get the following error message 'Transaction Context In Use by another session' on execution of the second task. I have read about this problem/bug on the Microsoft Web Site.
Does anyone know of any way around this problem, as I need to use Transformations in order to be able to use the error handling in DTS to see Source Error Records (it is a requirement to determine which records cause errors in the DTS). If I use Transact SQL (e.g. Insert into tblDest select * from tblStaging) then I cannot pinpoint exactly which records
cause errors

Many Thank
Gaye

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

Default Re: Multiple Data Driven Query Tasks - 02-09-2004 , 05:38 AM






Are they all seperate connection objects i.e. Conn1 , Conn2, Conn3 and do
not derive from one connection?



--

----------------------------

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


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

Quote:
I have 4 Data Driven Query Tasks executing within a Package. All of these
perform inserts/updates/deletes on destination tables using data sourced
from staging tables within the same database (so the Binding and Destination
tables for all 4 Tasks have the same connections). When more than one of the
Tasks has the 'Join Transaction' option set (I need this for rollback
purposes) I get the following error message 'Transaction Context In Use by
another session' on execution of the second task. I have read about this
problem/bug on the Microsoft Web Site.
Quote:
Does anyone know of any way around this problem, as I need to use
Transformations in order to be able to use the error handling in DTS to see
Source Error Records (it is a requirement to determine which records cause
errors in the DTS). If I use Transact SQL (e.g. Insert into tblDest select *
from tblStaging) then I cannot pinpoint exactly which records
Quote:
cause errors.

Many Thanks
Gaye



Reply With Quote
  #3  
Old   
Gaye Finn
 
Posts: n/a

Default RE: Multiple Data Driven Query Tasks - 02-09-2004 , 06:01 AM



I have 2 Connections called 'Corporate Database' and 'Corporate Database II', both of which refer to the same database. Each of the 4 tasks uses the first connnection for the source and the second connection for the bindings connection.

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

Default Re: Multiple Data Driven Query Tasks - 02-09-2004 , 06:37 AM



Are they all seperate connection objects

When you defined them did you specify "Existing Connection" ?

Can you not join them together using workflow so they all execute
individually one after the other (serially).



--

----------------------------

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


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

Quote:
I have 2 Connections called 'Corporate Database' and 'Corporate Database
II', both of which refer to the same database. Each of the 4 tasks uses the
first connnection for the source and the second connection for the bindings
connection.




Reply With Quote
  #5  
Old   
Gaye Finn
 
Posts: n/a

Default Re: Multiple Data Driven Query Tasks - 02-09-2004 , 07:11 AM



Both the Connection objects I have are defined seperately (i.e. I did not select 'Existing Connection') .
I am using DTS workflow in order to run them serially (i.e if one fails no more are executed). However when the second task executes I get the 'Transaction Context in use by another session'.
Should I have 8 connection objects instead of 2, i.e each of the 4 tasks would have a different Source and Binding connections instead of reusing them?

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

Default Re: Multiple Data Driven Query Tasks - 02-09-2004 , 07:18 AM



In the workflow properties can you set "Close Connection on completion"

If I use this task I have different connections for each connection yes.

--

----------------------------

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


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

Quote:
Both the Connection objects I have are defined seperately (i.e. I did not
select 'Existing Connection') .
I am using DTS workflow in order to run them serially (i.e if one fails no
more are executed). However when the second task executes I get the
'Transaction Context in use by another session'.
Quote:
Should I have 8 connection objects instead of 2, i.e each of the 4 tasks
would have a different Source and Binding connections instead of reusing
them?




Reply With Quote
  #7  
Old   
Gaye Finn
 
Posts: n/a

Default Re: Multiple Data Driven Query Tasks - 02-09-2004 , 08:41 AM



I have the "Close Connection on completion" option set for each of the tasks. I also now have 8 connection objects in use by the 4 tasks. The error is still occuring - the only way to run the package successfully is to uncheck the 'Join Transaction' option, however I don't want to do this



----- Allan Mitchell wrote: ----

In the workflow properties can you set "Close Connection on completion

If I use this task I have different connections for each connection yes

--

---------------------------

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 communit
for SQL Server professionals - http://www.sqlpass.or


"Gaye Finn" <anonymous (AT) discussions (DOT) microsoft.com> wrote in messag
news:6AB9D382-E4C6-4A97-BF1C-0486D7226B4F (AT) microsoft (DOT) com..
Quote:
Both the Connection objects I have are defined seperately (i.e. I did no
select 'Existing Connection')
I am using DTS workflow in order to run them serially (i.e if one fails n
more are executed). However when the second task executes I get th
'Transaction Context in use by another session'
Quote:
Should I have 8 connection objects instead of 2, i.e each of the 4 task
would have a different Source and Binding connections instead of reusin
them





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

Default Re: Multiple Data Driven Query Tasks - 02-09-2004 , 08:48 AM



Oh sorry, I didn't read that you were using transactions in the package.

Why are you using DDQs?



--

----------------------------

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


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

Quote:
I have the "Close Connection on completion" option set for each of the
tasks. I also now have 8 connection objects in use by the 4 tasks. The error
is still occuring - the only way to run the package successfully is to
uncheck the 'Join Transaction' option, however I don't want to do this.
Quote:



----- Allan Mitchell wrote: -----

In the workflow properties can you set "Close Connection on
completion"

If I use this task I have different connections for each connection
yes.

--

----------------------------

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


"Gaye Finn" <anonymous (AT) discussions (DOT) microsoft.com> wrote in message
news:6AB9D382-E4C6-4A97-BF1C-0486D7226B4F (AT) microsoft (DOT) com...
Both the Connection objects I have are defined seperately (i.e. I
did not
select 'Existing Connection') .
I am using DTS workflow in order to run them serially (i.e if one
fails no
more are executed). However when the second task executes I get the
'Transaction Context in use by another session'.
Should I have 8 connection objects instead of 2, i.e each of the 4
tasks
would have a different Source and Binding connections instead of
reusing
them?






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.