Solved

Usage Scenarios for Extended Events?

Posted on 2016-11-28
1
36 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 29

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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

Audit has been really one of the more interesting, most useful, yet difficult to maintain topics in the history of SQL Server. In earlier versions of SQL people had very few options for auditing in SQL Server. It typically meant using SQL Trace …
How to leverage one TLS certificate to encrypt Microsoft SQL traffic and Remote Desktop Services, versus creating multiple tickets for the same server.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

624 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