Sample Java Code to Test an SQL Connection

Found this great piece of code from Microsoft Support site.  It really works well to help troubleshoot possible connection vs environment issues. I cant get the line breaks to make it look pretty, so you can download the txt file HERE. Enjoy!

You may also like