Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Transaction Promotion/Hang?

 
   Database Help (Home) -> Server RSS
Next:  SQL Service wont Auto Start with Mcafee McShield ..  
Author Message
SnapDive

External


Since: Jan 13, 2010
Posts: 4



(Msg. 1) Posted: Mon Mar 29, 2010 4:52 pm
Post subject: Transaction Promotion/Hang?
Archived from groups: microsoft>public>sqlserver>server (more info?)

SQL Server 2008, a SSIS package runs fine. I attempted to make it
transactional, and run that within a larger SSIS transaction. The
execution now hangs somewhere. I suspect it is when the internal
transaction gets promoted to run within the containing transaction,
but I really have no idea what is happening.

Can anyone throw me any clues or what-to-trace info so I can
understand this better?


Thanks.

 >> Stay informed about: Transaction Promotion/Hang? 
Back to top
Login to vote
Uri Dimant

External


Since: Aug 24, 2003
Posts: 1744



(Msg. 2) Posted: Tue Mar 30, 2010 10:25 am
Post subject: Re: Transaction Promotion/Hang? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi
See blocking info
-- Basic blocking information

---select * from Sys.dm_db_index_operational_stats(DB_ID(),NULL, NULL, NULL)

SELECT

owt.session_id AS waiting_session_id,

owt.blocking_session_id,

DB_NAME(tls.resource_database_id) as database_name,

owt.wait_duration_ms,

owt.waiting_task_address,

tls.request_mode,

tls.request_type,

tls.resource_associated_entity_id,

tls.resource_description AS local_resource_description,

owt.wait_type,

owt.resource_description AS blocking_resource_description

FROM sys.dm_os_waiting_tasks AS owt

INNER JOIN sys.dm_tran_locks AS tls ON owt.resource_address =
tls.lock_owner_address

WHERE owt.wait_duration_ms > 5000

AND owt.session_id > 50

-- Detailed blocking information with query information

SELECT

owt.session_id AS waiting_session_id,

owt.blocking_session_id,

DB_NAME(tls.resource_database_id) AS database_name,

(SELECT SUBSTRING(est.[text], ers.statement_start_offset/2 + 1,

(CASE WHEN ers.statement_end_offset = -1

THEN LEN(CONVERT(nvarchar(max), est.[text])) * 2

ELSE ers.statement_end_offset

END

- ers.statement_start_offset

) / 2)

FROM sys.dm_exec_sql_text(ers.[sql_handle]) AS est) AS waiting_query_text,

CASE WHEN owt.blocking_session_id > 0

THEN (

SELECT

est.[text] FROM sys.sysprocesses AS sp

CROSS APPLY sys.dm_exec_sql_text(sp.[sql_handle]) as est

WHERE sp.spid = owt.blocking_session_id)

ELSE

NULL

END AS blocking_query_text,

(CASE tls.resource_type

WHEN 'OBJECT' THEN OBJECT_NAME(tls.resource_associated_entity_id,
tls.resource_database_id)

WHEN 'DATABASE' THEN DB_NAME(tls.resource_database_id)

ELSE (SELECT OBJECT_NAME(pat.[object_id], tls.resource_database_id)

FROM sys.partitions pat WHERE pat.hobt_id =
tls.resource_associated_entity_id)

END

) AS object_name,

owt.wait_duration_ms,

owt.waiting_task_address,

owt.wait_type,

tls.resource_associated_entity_id,

tls.resource_description AS local_resource_description,

tls.resource_type,

tls.request_mode,

tls.request_type,

tls.request_session_id,

owt.resource_description AS blocking_resource_description,

qp.query_plan AS waiting_query_plan

FROM sys.dm_tran_locks AS tls

INNER JOIN sys.dm_os_waiting_tasks owt ON tls.lock_owner_address =
owt.resource_address

INNER JOIN sys.dm_exec_requests ers ON tls.request_request_id =
ers.request_id AND owt.session_id = ers.session_id

OUTER APPLY sys.dm_exec_query_plan(ers.[plan_handle]) AS qp

GO

"SnapDive" wrote in message

>
> SQL Server 2008, a SSIS package runs fine. I attempted to make it
> transactional, and run that within a larger SSIS transaction. The
> execution now hangs somewhere. I suspect it is when the internal
> transaction gets promoted to run within the containing transaction,
> but I really have no idea what is happening.
>
> Can anyone throw me any clues or what-to-trace info so I can
> understand this better?
>
>
> Thanks.
>
>

 >> Stay informed about: Transaction Promotion/Hang? 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Linked Server Hang up - My MS Access app links to an SQL Server 2000 db which includes a linked server. A pass through query like "select * from linkedtable" works fine. But "select * from linkedtable where linkedtablekey=1" fails - ODBC timeout error. ...

Trigger hang on linked server update for Win 2003 - Greetings. A recent server upgrade brought this issue to my attention. In order to get part information from our accounting app to a data warehouse asap, I put some triggers on the tables to essentially copy the changes to another server. For..

sql server odbc jobs hang - I have two sql servers and one aix/unix server. server 1 - windows 2003 r3 running Microsoft SQL Server 2000 - 8.00.760 build 3790 server 2 - windows 2000 sp 4 running Microsoft SQL Server 2000 - 8.00.760 build 3790 server 3 - aix - unix runnin...

Transaction log - Hello. Exactly one month ago, I migrated my ERP application and database from Sybase SQL Anywhere v5.5 into MS SQL 2000. Today I'm wondering how can I do something I used to do sometimes over Sybase... The question is: how can I get a script file..

Shrinking Transaction log - I am using SQL Server 2005. I would like to shrink the transaction log to 150 MB, which one of the following command should I use? --shrink the transaction log to 150 MB DBCC SHRINKFILE (N'myDb_log' , 150) or ALTER DATABASE myDb SET RECOVERY SIMPLE;....
   Database Help (Home) -> Server All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]