Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Usage Scenarios for Extended Events?

Posted on 2016-11-28
1
Medium Priority
?
38 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 30

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

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

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 …
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…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

670 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