SQL_IS_LINK_UP() aborts if wether no resource or null is given