![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I am planning to automate a nighty restore of a DB on another server can someone point me in the right direction with the SQL script to modify the logical file names to the correct path and not the ones carried over with the DB?? i.e the database is to be renamed on the new server any help much appreciated Many thanks in advance |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
Many thanks for that it seems to be what i was after however i keep getting an error - The job failed. The Job was invoked by User domainname\user. The last step to run was step 2 (Restore). The job was requested to start at step 1 (Kill connections). |
#5
| |||
| |||
|
|
The job failed. The Job was invoked by User domainname\user. The last step to run was step 2 (Restore). The job was requested to start at step 1 (Kill connections). |
#6
| |||
| |||
|
|
yes the error is The job failed. The Job was invoked by User domainname\user. The last step to run was step 2 (Restore). The job was requested to start at step 1 (Kill connections). |
#7
| |||
| |||
|
#8
| |||
| |||
|
|
Arrr Apologies here is the info Executed as user: User domainname\user. Exclusive access could not be obtained because the database is in use. [SQLSTATE 42000] (Error 3101) RESTORE DATABASE is terminating abnormally. [SQLSTATE 42000] (Error 3013). The step failed. Step one runs fine which disconnects users so not sure what the prob is? any ideas?? |
|
Many thanks |
#9
| |||
| |||
|
#10
| |||
| |||
|
|
here is the info Executed as user: User domainname\user. Exclusive access could not be obtained because the database is in use. [SQLSTATE 42000] (Error 3101) RESTORE DATABASE is terminating abnormally. [SQLSTATE 42000] (Error 3013). The step failed. Step one runs fine which disconnects users so not sure what the prob is? any ideas?? |
![]() |
| Thread Tools | |
| Display Modes | |
| |