Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 242
  • Last Modified:

Try/Catch Block and Event Viewer

If i'm using a try/catch block in a stored procedure and an exception is throw will the exception be logged in the event viewer or do I explicitly need to insert a record into the event viewer?
0
davidcahan
Asked:
davidcahan
  • 3
  • 2
1 Solution
 
tiagosalgadoCommented:
You need to insert your exception to anywhere. It wont insert to event viewer.
0
 
davidcahanAuthor Commented:
thanks
0
 
davidcahanAuthor Commented:
actually...let me make sure I fully understand.  I know this might be the wrong forum, but are you saying that the only reason I see DB exceptions in the event viewer to begin with is because .NET puts them there when an exception is raised.  And conversely, that SQL Server in and of itself has nothing to do with the fact that I see the exception in the event viewer?
0
 
tiagosalgadoCommented:
Yep.
0
 
davidcahanAuthor Commented:
so how do i insert the event into the event viewer from SQL Server.  I assume this is possible?
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now