c# - SQLException deadlocked: does the exception contains the query text executed somewhere? -


the sqlexception "was deadlocked on lock resources process , has been chosen deadlock victim" quite common ;-)

does exception contains query text executed somewhere ? possible obtain ?

thks

yes, not in exception. should know did - , exception tells you deadlocked. should know sql youwere executing @ moment.

for rest, use query profiler , other information obtain teh server (check http://support.microsoft.com/kb/832524 tips, or http://msdn.microsoft.com/en-us/library/aa937573(v=sql.80).aspx find out other scripts deadlock with. is, though, obbvious security reasons, onl adins do.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -