When you try restoring a SQL database, you may get an error message saying “Exclusive access can’t obtained, database is in use”. First, of course, stop all Syteline service, like IDO, Taskman. If it still doesn’t work, try the below to set it to single user mode
Alter Database Database_Name SET SINGLE_USER With ROLLBACK IMMEDIATE
You may run Exec sp_who2 to see the user connection to database.
If this still doesn’t work, try detach/reattach the database.