SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Administration
 Drop "appended" transaction
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Ciupaz
Posting Yak Master

Italy
232 Posts

Posted - 02/25/2013 :  04:45:05  Show Profile  Reply with Quote
Hello all,
using an ASP.NET application, when Visual Studio crashes, my database (SS 2008 R2) become inaccesible, due to a transaction that this application cannot rollback or commit.
Inside Management Studio, how can I drop this orphan transaction?

Thanks in advance.

Luigi

webfred
Flowing Fount of Yak Knowledge

Germany
8768 Posts

Posted - 02/25/2013 :  04:55:57  Show Profile  Visit webfred's Homepage  Reply with Quote
Try this:
run sp_who2 in a query window and then, using the given information in the result set, try to identify the needed SPID (for example 56)
then you can do that:
kill 56



Too old to Rock'n'Roll too young to die.
Go to Top of Page

Ciupaz
Posting Yak Master

Italy
232 Posts

Posted - 02/25/2013 :  05:09:35  Show Profile  Reply with Quote
I'll try in this way. Thank you Webfred.

Luigi
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000