I have a system with a few different databases, and I would like to check if a certain database is down, and if so display a message to the user.
Is it possible in NHibernate to check if there is an active connection to the database, without having to request data and then catch the exception?
Query the
statecolumn ofsys.databasesONLINE = OK, anything else = not available
or