dbTalk Databases Forums  

Transactions

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


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



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

Default Transactions - 01-22-2004 , 10:18 PM






HI,
I'm not able to run my package when I prepare it for transactions.

Case: I have 5 packages and each of them have some 6 to 15 Tasks and each
package has 'Use Transactions' property checked and each task has 'Join
transaction' property checked. I run all these packages in a mother package,
because I want all the packages as part of the transaction (all or nothing).
When I run to test it through designer, my package hangs.

I have msdtc running.

can someone throw light my problem.

Thanks in advance,
Rgds,
Mabbu



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

Default Re: Transactions - 01-23-2004 , 12:17 AM






Can you see where it is hanging?
Does each package run individually?


--
--

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


"Mabbu Bharat" <m_bharat (AT) hotmail (DOT) com> wrote

Quote:
HI,
I'm not able to run my package when I prepare it for transactions.

Case: I have 5 packages and each of them have some 6 to 15 Tasks and each
package has 'Use Transactions' property checked and each task has 'Join
transaction' property checked. I run all these packages in a mother
package,
because I want all the packages as part of the transaction (all or
nothing).
When I run to test it through designer, my package hangs.

I have msdtc running.

can someone throw light my problem.

Thanks in advance,
Rgds,
Mabbu





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

Default Re: Transactions - 01-23-2004 , 01:27 AM



OK

Can you change the isolation level from Serializable to the default of Read
Committed.

When you execute the package (serializable) have a look on the server to
which the connection pertains and my guess is that if you execute sp_who2 in
QA you will see blocking.



--

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


"Mabbu Bharat" <m_bharat (AT) hotmail (DOT) com> wrote

Quote:
yeah...
It fails on any task that has 'join transaction if present' checked in the
workflow properties page....
I did try to execute that task and it just hangs, no information.
Please find the attachment...

Thanks and Regards,
Mabbu

"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message
news:urfjngX4DHA.2888 (AT) tk2msftngp13 (DOT) phx.gbl...
Can you see where it is hanging?
Does each package run individually?


--
--

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


"Mabbu Bharat" <m_bharat (AT) hotmail (DOT) com> wrote in message
news:%23J4HkfW4DHA.1672 (AT) TK2MSFTNGP12 (DOT) phx.gbl...
HI,
I'm not able to run my package when I prepare it for transactions.

Case: I have 5 packages and each of them have some 6 to 15 Tasks and
each
package has 'Use Transactions' property checked and each task has
'Join
transaction' property checked. I run all these packages in a mother
package,
because I want all the packages as part of the transaction (all or
nothing).
When I run to test it through designer, my package hangs.

I have msdtc running.

can someone throw light my problem.

Thanks in advance,
Rgds,
Mabbu










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

Default Re: Transactions - 01-23-2004 , 02:58 AM



Your ExecuteSQL task is failing (DeleteData)

Can you show me

1. The workflow properties the for task
2. The statement inside?

Take the statement out from the task and look in QA.

Execute there?

--

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


"Mabbu Bharat" <m_bharat (AT) hotmail (DOT) com> wrote

Quote:
It doesn't work still, but atleast now we get an error. Following
scenarios
were tried.

1. Error.jpg : If I just execute the Step.

2. Error1.jpg: If I execute the package.



Any other possibilities you see...

Thanks again,

Mabbu

"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message
news:esd40GY4DHA.2332 (AT) TK2MSFTNGP10 (DOT) phx.gbl...

OK

Can you change the isolation level from Serializable to the default of
Read
Committed.

When you execute the package (serializable) have a look on the server to
which the connection pertains and my guess is that if you execute
sp_who2
in
QA you will see blocking.



--

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


"Mabbu Bharat" <m_bharat (AT) hotmail (DOT) com> wrote in message
news:%23riC16X4DHA.2612 (AT) tk2msftngp13 (DOT) phx.gbl...
yeah...
It fails on any task that has 'join transaction if present' checked in
the
workflow properties page....
I did try to execute that task and it just hangs, no information.
Please find the attachment...

Thanks and Regards,
Mabbu

"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message
news:urfjngX4DHA.2888 (AT) tk2msftngp13 (DOT) phx.gbl...
Can you see where it is hanging?
Does each package run individually?


--
--

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


"Mabbu Bharat" <m_bharat (AT) hotmail (DOT) com> wrote in message
news:%23J4HkfW4DHA.1672 (AT) TK2MSFTNGP12 (DOT) phx.gbl...
HI,
I'm not able to run my package when I prepare it for
transactions.

Case: I have 5 packages and each of them have some 6 to 15 Tasks
and
each
package has 'Use Transactions' property checked and each task has
'Join
transaction' property checked. I run all these packages in a
mother
package,
because I want all the packages as part of the transaction (all or
nothing).
When I run to test it through designer, my package hangs.

I have msdtc running.

can someone throw light my problem.

Thanks in advance,
Rgds,
Mabbu















Reply With Quote
  #5  
Old   
Mabbu Bharat
 
Posts: n/a

Default Re: Transactions - 01-23-2004 , 03:00 AM



And it works in QA....

-Mabbu

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

Quote:
Your ExecuteSQL task is failing (DeleteData)

Can you show me

1. The workflow properties the for task
2. The statement inside?

Take the statement out from the task and look in QA.

Execute there?

--

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


"Mabbu Bharat" <m_bharat (AT) hotmail (DOT) com> wrote in message
news:e5IrBiY4DHA.2404 (AT) TK2MSFTNGP12 (DOT) phx.gbl...
It doesn't work still, but atleast now we get an error. Following
scenarios
were tried.

1. Error.jpg : If I just execute the Step.

2. Error1.jpg: If I execute the package.



Any other possibilities you see...

Thanks again,

Mabbu

"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message
news:esd40GY4DHA.2332 (AT) TK2MSFTNGP10 (DOT) phx.gbl...

OK

Can you change the isolation level from Serializable to the default of
Read
Committed.

When you execute the package (serializable) have a look on the server
to
which the connection pertains and my guess is that if you execute
sp_who2
in
QA you will see blocking.



--

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


"Mabbu Bharat" <m_bharat (AT) hotmail (DOT) com> wrote in message
news:%23riC16X4DHA.2612 (AT) tk2msftngp13 (DOT) phx.gbl...
yeah...
It fails on any task that has 'join transaction if present' checked
in
the
workflow properties page....
I did try to execute that task and it just hangs, no information.
Please find the attachment...

Thanks and Regards,
Mabbu

"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message
news:urfjngX4DHA.2888 (AT) tk2msftngp13 (DOT) phx.gbl...
Can you see where it is hanging?
Does each package run individually?


--
--

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


"Mabbu Bharat" <m_bharat (AT) hotmail (DOT) com> wrote in message
news:%23J4HkfW4DHA.1672 (AT) TK2MSFTNGP12 (DOT) phx.gbl...
HI,
I'm not able to run my package when I prepare it for
transactions.

Case: I have 5 packages and each of them have some 6 to 15 Tasks
and
each
package has 'Use Transactions' property checked and each task
has
'Join
transaction' property checked. I run all these packages in a
mother
package,
because I want all the packages as part of the transaction (all
or
nothing).
When I run to test it through designer, my package hangs.

I have msdtc running.

can someone throw light my problem.

Thanks in advance,
Rgds,
Mabbu

















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

Default Re: Transactions - 01-23-2004 , 03:30 AM



Your workflow properties look fine.

I would try this

1. Get rid of the GO statements - retry
2. Seperate out the 3 DELETE statements to their own task - retry


Also have the package log to text file and see if the error is better
defined there.



--

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


"Mabbu Bharat" <m_bharat (AT) hotmail (DOT) com> wrote

Quote:
1. Attached jpg
2.
DELETE FROM APPROVALPARAMETERS
GO
DELETE FROM APPROVAL_FILTERS
GO
DELETE FROM APPROVAL_RULE
GO

"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message
news:#X#8k5Y4DHA.2384 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
Your ExecuteSQL task is failing (DeleteData)

Can you show me

1. The workflow properties the for task
2. The statement inside?

Take the statement out from the task and look in QA.

Execute there?

--

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


"Mabbu Bharat" <m_bharat (AT) hotmail (DOT) com> wrote in message
news:e5IrBiY4DHA.2404 (AT) TK2MSFTNGP12 (DOT) phx.gbl...
It doesn't work still, but atleast now we get an error. Following
scenarios
were tried.

1. Error.jpg : If I just execute the Step.

2. Error1.jpg: If I execute the package.



Any other possibilities you see...

Thanks again,

Mabbu

"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message
news:esd40GY4DHA.2332 (AT) TK2MSFTNGP10 (DOT) phx.gbl...

OK

Can you change the isolation level from Serializable to the default
of
Read
Committed.

When you execute the package (serializable) have a look on the
server
to
which the connection pertains and my guess is that if you execute
sp_who2
in
QA you will see blocking.



--

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


"Mabbu Bharat" <m_bharat (AT) hotmail (DOT) com> wrote in message
news:%23riC16X4DHA.2612 (AT) tk2msftngp13 (DOT) phx.gbl...
yeah...
It fails on any task that has 'join transaction if present'
checked
in
the
workflow properties page....
I did try to execute that task and it just hangs, no information.
Please find the attachment...

Thanks and Regards,
Mabbu

"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message
news:urfjngX4DHA.2888 (AT) tk2msftngp13 (DOT) phx.gbl...
Can you see where it is hanging?
Does each package run individually?


--
--

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


"Mabbu Bharat" <m_bharat (AT) hotmail (DOT) com> wrote in message
news:%23J4HkfW4DHA.1672 (AT) TK2MSFTNGP12 (DOT) phx.gbl...
HI,
I'm not able to run my package when I prepare it for
transactions.

Case: I have 5 packages and each of them have some 6 to 15
Tasks
and
each
package has 'Use Transactions' property checked and each task
has
'Join
transaction' property checked. I run all these packages in a
mother
package,
because I want all the packages as part of the transaction
(all
or
nothing).
When I run to test it through designer, my package hangs.

I have msdtc running.

can someone throw light my problem.

Thanks in advance,
Rgds,
Mabbu




















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

Default Re: Transactions - 07-02-2004 , 01:31 AM



In message <80958627-DBDD-4366-8371-7377D168213F (AT) microsoft (DOT) com>, Hari
<Hari (AT) discussions (DOT) microsoft.com> writes
Quote:
Hi i am new to DTS and i want to try one thing. please help me out with this.

i have three packages and i am creating one more package which uses
three execute package task to run each of them. and Lets say that i am
running them serially, i.e. 1st and then 2nd and the third. But during
that if any one of this package has an error and it fails all the
three package should roll back, i.e. if first one fails then no
prob(because i have precedence constraints). But if third one fails
after sucessful completion of first two, then all the three should roll back.
Can somebosy help me with this.

Incorporating Transactions in a DTS Package
(http://msdn.microsoft.com/library/de.../en-us/dtssql/
dts_addf_tx_2n8l.asp?frame=true)

What you describe is possible, so I suggest you start with the above
section of Books Online. If you have questions after this then please
post back with specifics.

--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com

PASS - the definitive, global community for SQL Server professionals
http://www.sqlpass.org



Reply With Quote
  #8  
Old   
Hari
 
Posts: n/a

Default Re: Transactions - 07-04-2004 , 09:49 PM



Dear Darren, let me tell you what i did.
i have enabled join transaction and rollback on failure on all the three execute package workflow properties and enabled commit on success for the last one. and i set use transaction and commit on success for the package properties.

But even then the first two packages are running successfully and the third one is failing, but there is no rolling back occuring. And i am also getting some error like dtsdatapump failed to join or unable to join.
is there anyother way to do this.

"Darren Green" wrote:

Quote:
In message <80958627-DBDD-4366-8371-7377D168213F (AT) microsoft (DOT) com>, Hari
Hari (AT) discussions (DOT) microsoft.com> writes
Hi i am new to DTS and i want to try one thing. please help me out with this.

i have three packages and i am creating one more package which uses
three execute package task to run each of them. and Lets say that i am
running them serially, i.e. 1st and then 2nd and the third. But during
that if any one of this package has an error and it fails all the
three package should roll back, i.e. if first one fails then no
prob(because i have precedence constraints). But if third one fails
after sucessful completion of first two, then all the three should roll back.
Can somebosy help me with this.


Incorporating Transactions in a DTS Package
(http://msdn.microsoft.com/library/de.../en-us/dtssql/
dts_addf_tx_2n8l.asp?frame=true)

What you describe is possible, so I suggest you start with the above
section of Books Online. If you have questions after this then please
post back with specifics.

--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com

PASS - the definitive, global community for SQL Server professionals
http://www.sqlpass.org



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

Default Re: Transactions - 07-06-2004 , 03:59 AM



In message <9C701BD2-86A5-4B3A-89D3-34DF47332281 (AT) microsoft (DOT) com>, Hari
<Hari (AT) discussions (DOT) microsoft.com> writes
Quote:
Dear Darren, let me tell you what i did.
i have enabled join transaction and rollback on failure on all the
three execute package workflow properties and enabled commit on success
for the last one. and i set use transaction and commit on success for
the package properties.

But even then the first two packages are running successfully and the
third one is failing, but there is no rolling back occuring. And i am
also getting some error like dtsdatapump failed to join or unable to
join.
is there anyother way to do this.

If you have set rollback on failure for teh Exec Pkg Tasks, then you
must ensure that the child package is set to fail on first error, so
that any error is raised up to the parent.

As for the datapump issue, the full error would be useful, but to start
with try this-

279857 - BUG: Error 3910, "Transaction Context in Use by Another
Session"
(http://support.microsoft.com/default...9857&Product=s
ql2k)

--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com

PASS - the definitive, global community for SQL Server professionals
http://www.sqlpass.org



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.