Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Usage Scenarios for Extended Events?

Posted on 2016-11-28
1
Medium Priority
?
42 Views
Last Modified: 2016-11-28
Hi experts
i am reading about: Usage Scenarios for Extended Events?
what's the mean?
Troubleshooting Orphaned Transactions?
0
Comment
Question by:enrique_aeo
1 Comment
 
LVL 35

Accepted Solution

by:
Pawan Kumar earned 2000 total points
ID: 41905046
Usage Scenarios for Extended Events?
Extended Events are the future as Microsoft are not doing any investment in SQL profiler area. You should use Extended Events to track down the root cause of orphaned-transactions. This is the quickest way to figure out whats causing this problem in a live system.

http://sqlskills.com/blogs/jonathan/post/An-XEvent-a-Day-(11-of-31)-e28093-Targets-Week-e28093-Using-Multiple-Targets-to-Debug-Orphaned-Transactions.aspx

<<Ref-
https://social.msdn.microsoft.com/Forums/sqlserver/en-US/959fbf22-5d3c-401a-91e4-a265ed4e0070/seeing-orphaned-transactions-that-we-need-to-kill?forum=sqldatabaseengine>>


Troubleshooting Orphaned Transactions?

In SQL Server we have transactions. In order to mark any transaction as as an orphaned, distributed transaction SPID, SQL Server changes the SPID from a positive number to -2.  This only problem is the SPID may still be holding on to resources (usually table, page or row locks), and blocking other SPIDs which want to access that database object.
There could be number of reasons why SQL marked any transaction as Orphaned. One of the reason could be Phantoms.
<<Ref more -www.sqlservercentral.com/articles/Administration/99299/>

How It Works: Orphan DTC Transaction (Session/SPID = -2)
https://blogs.msdn.microsoft.com/psssql/2010/04/20/how-it-works-orphan-dtc-transaction-sessionspid-2/>

Hope it helps !!
0

Featured Post

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have written a PowerShell script to "walk" the security structure of each SQL instance to find:         Each Login (Windows or SQL)             * Its Server Roles             * Every database to which the login is mapped             * The associated "Database User" for this …
If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …

783 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question