Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 12963

restoring a database from a different database

$
0
0

I want to restore database new2db from newdb. both dbs are on different sql server instances.

I have backup of newdb called newdb_july.bkup.

I ran the below command :

restore database new2db from disk = 'c:\mssql\backup\newdb_july.bkup' with file=1,
move 'newdb' to 'C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA\new2db.mdf',
move 'newdb_log' to 'C:\Program Files\Microsoft SQLServer\MSSQL10.MSSQLSERVER\MSSQL\DATA\new2db_log.ldf', 
replace,norecovery,stats=10

the restore completed successfully but the database is still in 'Restoring' status.

how do I get the database in active accessible status?

appreciate the feedback.


Viewing all articles
Browse latest Browse all 12963

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>