• The best way to get this kind of thing done is not to put the database into single user mode. The best way is to put it into restricted user mode. But, that does require that you have security set up such that all the logins aren't 'sa' or 'dbo'.

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning