In order to the determine the 'liveliness' of a remote SQL-server, I need to periodically address the server with some query.
I am looking for a query which will generate minimal server work, and minimal communications overhead (both for the query and the reply).
The query should work on SQL-Server 2005 and 2008 at least, and should not assume existance of some database or table, and should not generate errors.