Solved

Usage Scenarios for Extended Events?

Posted on 2016-11-28
1
12 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 18

Accepted Solution

by:
Pawan Kumar Khowal earned 500 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

This is basically a blog post I wrote recently. I've found that SARGability is poorly understood, and since many people don't read blogs, I figured I'd post it here as an article. SARGable is an adjective in SQL that means that an item can be fou…
In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

744 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now