I want to run most of my queries in a way that they return with an error message if not enough tempdb available.
Is there a way to do this?
The default behaviour of waiting for tempdb to have more space. But this is useless because if other processes are consuming tempdb simultaneously they deadlock each other.