What's the difference between Single User and Restricted User with MSSQL
Single_User
- Restricts access to a database to only one user at a time.
- It can be ANY USER.
- First come, first served. This does not restrict access to the dba.
SET single_user WITH ROLLBACK IMMEDIATE;
go
Command(s) completed successfully.
Then you can do your maintenance, database restore,....
Don't forget to return the database to multiuser mode for regular use.
SET multi_user;
go
Restricted_User
- Restricts access to a database to only members of:
- db_owner
- dbcreator
- sysadmin
- Often used for data import,...
- This means that multiple users can still be logged into the database, as long as they are dbo,...
SET restricted_user WITH ROLLBACK IMMEDIATE;
go
Command(s) completed successfully.
Don't forget to return the database to multiuser mode for regular use.
SET multi_user;
go
Multi_User
- Place the database back into multi-user mode for regular use, so everybody can use the database again.

