Solved

Usage Scenarios for Extended Events?

Posted on 2016-11-28
1
22 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 23

Accepted Solution

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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQl query 19 19
Auditing with Temporal Tables 4 29
Is the client attempting to connect on the correct network interface? 1 26
Caste datetime 2 50
In this article I will describe the Detach & Attach 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.
In this article I will describe the Copy Database Wizard 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.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…
A company’s greatest vulnerability is their email. CEO fraud, ransomware and spear phishing attacks are the no1 threat to a company’s security. Cybercrime is responsible for the largest loss of money to companies today with losses projected to r…

939 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

4 Experts available now in Live!

Get 1:1 Help Now