Hola:
Como restaurar una copia de seguridad(.bak) realizada a un bd "A" en otra bd
"B", desde linea de comandos osql, supongo que debe ser con la opcion MOVE,
ya que la copia de seguridad que se intenta restaurar no pertenece a la bd
"B".
Utilizo el comando:
osql -S GRE\SERVIDOR_MSDE -U SA -P -Q"RESTORE DATABASE DBX FROM DISK'C:\CREABASE\EMPRESA.BAK'"
esto me tira el error:
Msg 3141, Level 16, State 1, Server GRE\SERVIDOR_MSDE , Line 1
The database to be restored was named 'EMPRESA_EJEMPLO'. Reissue the
statement
using the WITH REPLACE option to overwrite the 'DBX' database.
Msg 3013, Level 16, State 1, Server GRE\SERVIDOR_MSDE , Line 1
RESTORE DATABASE is terminating abnormally.
Gracias.
Leer las respuestas