0

How can I capture queries that fail on the SQL Server due to connection drops/failures?

Profiler doesnt seem to capture if there is a connectivity loss.

Sam P
  • 515
  • 4
  • 8
  • 23

1 Answers1

0

Without catching the exception in the code this is not the easiest thing to do.

Community
  • 1
  • 1
twoleggedhorse
  • 4,938
  • 4
  • 23
  • 38
  • 1. Error logs dont show which query failed due to network failure 2. That link doesnt talk much about profiling for network issues 3. There are just too many – Sam P Dec 31 '12 at 03:29
  • In that case try this: http://stackoverflow.com/questions/295299/sql-server-timeout-logging along with this article: http://www.sqlmag.com/article/sql-server-profiler/gathering-deadlock-information-with-deadlock-graph – twoleggedhorse Dec 31 '12 at 09:24