Quantcast
Channel: Quality Center / ALM Practitioners Forum topics
Viewing all articles
Browse latest Browse all 5491

How restore ALM database project in SQL server from a network drive?

$
0
0

Dear Customer,

 

Here is one option that can be used to restore project database backups from a network drive. Useful when moving databases from one SQL server to another :

 

Locate the backup file in shared file system accross the network

   RESTORE FILELISTONLY

   FROM DISK =N'\\172.16.5.1\Shared Content\Viviana Ortiz\default_X_Test_db.BAK'

The above command will inspect the Back and list the number of objects contained.
To restore from a COPY_ONLY backup, use a command similar to the following:
 

RESTORE DATABASE [default_X_Test_db] –-name your database

FROM DISK = N'\\Server\Shared Folder\Folder\default_X_Test_db.BAK'

WITH FILE = 1

    , MOVE N'default_cfi_nextgen_db'

        TON'F:\Restore\databases files folder\default_X_Test_db.MDF'--the restore target directory for MDF

    , MOVEN'default_X_Test_db_log'

        TON'F:\Restore\databases files folder\default_X_Test_db.LDF' --the restore target directory for LDF

      --If you need to restore a full text search catalog find the name with the previous command and add another line as ldf and mdf

    , NOUNLOAD, STATS = 10

 

Results.PNG

 

Same steps can apply to the management database .

 

Cordially

Ameyjo


Viewing all articles
Browse latest Browse all 5491

Trending Articles



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