I suppose you want to lockout all users execpt the DBA.
ALTER DATABASE myDB
SET RESTRICTED_USER
WITH ROLBACK IMMEDIATE
The last line will rollback all open connections by non admin users. Only sysadmins and db_owner will be able to access the database.
[font="Verdana"]Markus Bohse[/font]