473,508 Members | 2,180 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem causing me to have to restore tlogs WITH MOVE

I have a database i am m oving to another server, during the process I
am moving the data and log files to another drive.(Which I have done
countless times before with no problems)
The problem I am having is after I restore the database using the
following statement :
RESTORE DATABASE CMAMSPROD FROM DISK = ’C:\Databasename.BAK’
WITH STANDBY = ’D:\Program Files\Microsoft SQL
Server\MSSQL\BACKUP\Databasename\databasename.STAN DBY’
,MOVE ’Databasename_Data’ TO ’D:\Program Files\Microsoft SQL
Server\MSSQL\Data\Databasename_Data.mdf’
,MOVE ’Databasename_Log’ TO ’D:\Program Files\Microsoft SQL
Server\MSSQL\Data\Databasename_Log.ndf’

I get these errors when trying to restore transaction logs :

[SQLSTATE 42000] (Error 3156) Device activation error. The physical
file
name ’C:\Program Files\Microsoft SQL
Server\MSSQL\Data\Databasename_log.ldf’ may be incorrect.
[SQLSTATE 42000] (Error 5105) File ’Databasename_Log’ cannot be
restored to ’C:\Program Files\Microsoft SQL
Server\MSSQL\Data\Databasename_log.ldf’. Use WITH MOVE to identify
a valid location for the file.

Has anyone encountered the same problem? This has me stumped,
although restoring the tlog with move, and standby works....this is
not how it should work.

--
Posted using the http://www.dbforumz.com interface, at author's request
Articles individually checked for conformance to usenet standards
Topic URL: http://www.dbforumz.com/General-Disc...ict259104.html
Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbforumz.com/eform.php?p=893187
Sep 28 '05 #1
1 4402
Hi

Check that your paths supplied are correct. Copy and past them into Windows
Explorer to see if they are right.

Regards
--------------------------------
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland

IM: mi**@epprecht.net

MVP Program: http://www.microsoft.com/mvp

Blog: http://www.msmvps.com/epprecht/

"CPNZ" <Us************@dbForumz.com> wrote in message
news:4_***************************************@dbf orumz.com...
I have a database i am m oving to another server, during the process I
am moving the data and log files to another drive.(Which I have done
countless times before with no problems)
The problem I am having is after I restore the database using the
following statement :
RESTORE DATABASE CMAMSPROD FROM DISK = ’C:\Databasename.BAK’
WITH STANDBY = ’D:\Program Files\Microsoft SQL
Server\MSSQL\BACKUP\Databasename\databasename.STAN DBY’
,MOVE ’Databasename_Data’ TO ’D:\Program Files\Microsoft SQL
Server\MSSQL\Data\Databasename_Data.mdf’
,MOVE ’Databasename_Log’ TO ’D:\Program Files\Microsoft SQL
Server\MSSQL\Data\Databasename_Log.ndf’

I get these errors when trying to restore transaction logs :

[SQLSTATE 42000] (Error 3156) Device activation error. The physical
file
name ’C:\Program Files\Microsoft SQL
Server\MSSQL\Data\Databasename_log.ldf’ may be incorrect.
[SQLSTATE 42000] (Error 5105) File ’Databasename_Log’ cannot be
restored to ’C:\Program Files\Microsoft SQL
Server\MSSQL\Data\Databasename_log.ldf’. Use WITH MOVE to identify
a valid location for the file.

Has anyone encountered the same problem? This has me stumped,
although restoring the tlog with move, and standby works....this is
not how it should work.

--
Posted using the http://www.dbforumz.com interface, at author's request
Articles individually checked for conformance to usenet standards
Topic URL:
http://www.dbforumz.com/General-Disc...ict259104.html
Visit Topic URL to contact author (reg. req'd). Report abuse:
http://www.dbforumz.com/eform.php?p=893187

Sep 28 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2051
by: xo55ox | last post by:
Hi, I have been trying to set up an automated restore process from prod to backup server. First, I schedule the full database backup nightly, transfer the backup file and restore it to the...
3
6029
by: Jon Jacobs | last post by:
I attempt to back up a database on one server and restore it on my local machine. This is what the query text looks like: restore database model from Disk='c:\JQJ\mydump\model.bak' with...
2
7806
by: DMAC | last post by:
The following failed in EM (or whatever it is called now management studio I think) and I scripted it out and ran it in a query window to get more info. This works fine in SQL 2000 but not in 2005....
1
1551
by: Terri | last post by:
MSSQL 2000 SP3A I'm trying to restore a database with the following commands. restore database Test from disk = 'D:\backups\9pm.bak' WITH RECOVERY, move 'DEV_Data' to 'c:\Program...
0
3128
by: Takpol | last post by:
Hello, I have several archived filegroups that have data in them partitioned based on the date. These filegroups have been removed from database after archival. For example two months ago....
1
14581
by: GitarJake | last post by:
Hello, I am getting the rather odd error below; hope you can help. RESTORE DATABASE is terminating abnormally. File 'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\trial_44testingc'...
5
4430
by: Neil | last post by:
I'm trying to use ADO to restore a SQL 7 database using a backup file. The database already exists on the target computer, and is named the same as on the source computer, and the MDF and LDF files...
0
1902
by: arulananthi | last post by:
hi, I am getting the rather odd error below; hope you can help. RESTORE DATABASE is terminating abnormally. File 'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\trial_44testingc' is...
1
7009
by: nikb | last post by:
I am trying to restore a SQL Server database from a .dat file. An earlier question on how to do this elicited the following answer. " You need to know how the '.dat' file was created in order...
0
7229
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
5637
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5057
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4716
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3208
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3194
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1566
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
769
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
428
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.