SQL 2008 R2 Report on historic DeadLocks ? And Deadlock Detect

One caveat -- I imagine this is a common question, I just haven't found anything yet.

I am a dev and frequently lack rights run Sql Profiler, Activity Monitor,  can's add a traceflag etc due to rights.  I have no 3rd party software.

Is there a log (other than THE log) of these events I can query for historic locks?  I have been sniffing through system queries and views and although some look promising I haven't found anything useful.

I found this script that gets CURRENTlock info, put it on a loop to insert to MyLockTable every 1 second, this is clumsy and resource intensive, but it does give me all the info that I need.  Is there anything better out there?
Hec RamseyAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

CamilliaCommented:
This is a good Microsoft link on how to detect deadlocks. You've seen it?

https://technet.microsoft.com/en-us/library/ms178104%28v=sql.105%29.aspx
0
Hec RamseyAuthor Commented:
Yes, that is current locks.  I want to see historic, trends.  I dont always have acces to profiler andtraces are expensive.
0
Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

Scott PletcherSenior DBACommented:
An administrator seriously needs to turn on trace flag 1222 (globally).

DBCC TRACEON ( 1222, -1 )

Even with extended events, I'd still want the trace, as that puts the info into the SQL error log where you can always scrape it out later (assuming you have authority to access the log I guess :-( ).
0
Hec RamseyAuthor Commented:
I work in a huge company and have 0 influence over how dba do their thing and cannot run profiler.  

Assuming all i can do is query data  and run non ddl or config procs, is thete anyway to view deadlock info?
0
Scott PletcherSenior DBACommented:
Not really.  Given that, then the DBAs should be responsible for stopping the deadlocks.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server 2008

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.