Please could somebody suggest a way of identifying the live connections to a SQL database from within a stored procedure. I am logging user activity into a table but, if a connection is lost as a result of system error or hardware failure, I have no way of logging this. I awnt to be able to ask programmatically, 'Is this connection still live?'.