Hello guys,
I need super help
I would like to restore a database and I tried everything!
use master
RESTORE DATABASE Test_prod
from disk= 'e:\MSSQL\BACKUP\TESTSANDBOXBACKUP.BAK'
WITH RECOVERY
-- Apply the first transaction log backup.
RESTORE LOG Test_prod
from disk= 'e:\MSSQL\BACKUP\TESTSANDBOXBACKUP.BAK'
WITH RECOVERY
go
and
the results:
/*-----------------------------
use master
RESTORE DATABASE Test_prod
from disk= 'e:\MSSQL\BACKUP\TESTSANDBOXBACKUP.BAK'
-----------------------------*/
Server: Msg 3101, Level 16, State 2, Line 2
Exclusive access could not be obtained because the database is in use.
Server: Msg 3013, Level 16, State 1, Line 2
RESTORE DATABASE is terminating abnormally.
Server: Msg 3101, Level 16, State 2, Line 7
Exclusive access could not be obtained because the database is in use.
Server: Msg 3013, Level 16, State 1, Line 7
RESTORE LOG is terminating abnormally.
I already tried to alter table to single_user and to restore the database but nothing... please how can I do it?
I used the the master admin in order to do my modification but for this database another user is set. test_user could be that?
in the process info I have an user for Test_prod user: tester ???
Ina
I need super help

I would like to restore a database and I tried everything!
use master
RESTORE DATABASE Test_prod
from disk= 'e:\MSSQL\BACKUP\TESTSANDBOXBACKUP.BAK'
WITH RECOVERY
-- Apply the first transaction log backup.
RESTORE LOG Test_prod
from disk= 'e:\MSSQL\BACKUP\TESTSANDBOXBACKUP.BAK'
WITH RECOVERY
go
and
the results:
/*-----------------------------
use master
RESTORE DATABASE Test_prod
from disk= 'e:\MSSQL\BACKUP\TESTSANDBOXBACKUP.BAK'
-----------------------------*/
Server: Msg 3101, Level 16, State 2, Line 2
Exclusive access could not be obtained because the database is in use.
Server: Msg 3013, Level 16, State 1, Line 2
RESTORE DATABASE is terminating abnormally.
Server: Msg 3101, Level 16, State 2, Line 7
Exclusive access could not be obtained because the database is in use.
Server: Msg 3013, Level 16, State 1, Line 7
RESTORE LOG is terminating abnormally.
I already tried to alter table to single_user and to restore the database but nothing... please how can I do it?
I used the the master admin in order to do my modification but for this database another user is set. test_user could be that?
in the process info I have an user for Test_prod user: tester ???
Ina