VB.NET Does SqlConnection get closed automatically in a Try/Catch if exception is thrown?

Viewed 2156

Didn't find this exact question/answer. In VB.NET, If I open a SqlConnection in a Try/Catch block, and an Exception is thrown (caught properly), is the connection implicitly closed, or do I have to close it? (does it even get opened if the Try failed?)

Would "test" this myself, but I don't really know how to tell if the connection is open or closed when the Exception is thrown.

Thanks!

1 Answers
Related