• It's for your consumption rather than mine. You stated that all logins have master as the default database - I just wanted you to check that that is indeed the case by running the query. If it doesn't return any rows, you're right. If it does, you need to check whether the default database for the logins returned exist and that the logins have permissions on them.

    John