JDBC - MSQL 2K5 SSL ISSUE



Hi ,


How could I query a SQL Server 2005 dataserver instance through my
Java Program if it is running in SSL mode or not ?
I am using a third party JDBC driver to esatblish SSL connection with
a MS SQL SERVER 2K5 dataserver but my connection
fails when the dataserver is restarted in Non - SSL mode. So , I need
a way to first query the database if its running in SSL
mode or not so that I can prepare my queries accordingly to make a
decision at runtime.


Thanks to you all genious in advance !!

.