SQL Server 2005: Database Recovery

I'm hoping this code will work when I try disaster recovery after tonight's failed deployment:

  1. Configure Database for Single User
    ALTER DATABASE mydatabase SET SINGLE_USER WITH ROLLBACK IMMEDIATE

  2. Restore Database

  3. Configure for Multi User
    ALTER DATABASE mydatabase SET MULTI_USER