Symptoms

Assume that you have a script that uses event notifications for AUDIT_LOGIN and AUDIT_LOGIN_FAILED events in Microsoft SQL Server 2016 and 2017. When you run the script, you will notice that the TempDB grows rapidly in size.

You can use the below query to check if space allocated to TempDB internal objects is correctly deallocated.