This should be an easy procedure but its not.

Something I found really useful was this:

RESTORE HEADERONLY FROM DISK = ‘c:\xxx.bak’
RESTORE FILELISTONLY FROM DISK = ‘c:\xxx.bak’

Basically from the SQL above you can find out the correct names of the xxx_Data and xxx_Log files for the next command:

RESTORE DATABASE newXXXX
FROM DISK = ‘c:\xxx.bak’
WITH REPLACE,
MOVE ‘xxxx_Data’ TO ‘C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\xxxx.mdf’
, MOVE ‘xxxx_Log’ TO ‘C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\xxxxx_log.ldf’

Currently I have the database ‘(Restoring…)’ in SQL Server 2005 Express but I cannot seem to get them out of their ‘Restoring’ process…..

These were useful:

http://www.mssqltips.com/tip.asp?tip=1150

http://doc.ddart.net/mssql/sql70/ra-rz_11.htm
Still got it ‘(Restoring…)’ but this may help someone:

Restore VerifyOnly From Disk=’c:xxxx.bak’

Posted Monday, June 2nd, 2008 at 9:51 pm
Filed Under Category: SQL Server, SQL Server 2005, Uncategorized
Responses are currently closed, but you can trackback from your own site.

0

Comments are closed.