473,372 Members | 1,055 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,372 software developers and data experts.

Why Restore with Norecovery is incomplete?

DL
Background Info:
Instance A: SQL Server 2005 on Windows Server 2003 OS
Instance B: SQL Server 2005 on XP Prof w/ SP2

Process:
backup a database on Instance A like this:
step 1 -- Management Studio for Instance A
BACKUP DATABASE myAppNameDB
TO DISK = 'c:\Temp\myAppNameDB_FullRecovery.bak'
GO

step 2 -- copy the .bak file to a network drive and then copy it to
local drive of Instance B

step 3 -- -- Management Studio for Instance B
restore it to target
RESTORE DATABASE myAppNameDB
FROM DISK = 'C:\dbData\myAppNameDB_trueFullRecovery.bak'
WITH NORECOVERY
GO

Outcome of the above step:
{myAppNameDB} (restoring...)

Why?

TIA
Sep 4 '08 #1
4 7908
DL
Never mind. I just restore it using the Restore feature of the
Management Studio.

On Sep 4, 9:50*am, DL <tatata9...@gmail.comwrote:
Background Info:
Instance A: SQL Server 2005 on Windows Server 2003 OS
Instance B: SQL Server 2005 on XP Prof w/ SP2

Process:
backup a database on Instance A like this:
step 1 -- Management Studio for Instance A
BACKUP DATABASE myAppNameDB
* * * * * * * TO DISK = 'c:\Temp\myAppNameDB_FullRecovery..bak'
GO

step 2 -- copy the .bak file to a network drive and then copy it to
local drive of Instance B

step 3 -- -- Management Studio for Instance B
restore it to target
RESTORE DATABASE myAppNameDB
* * FROM DISK = 'C:\dbData\myAppNameDB_trueFullRecovery.bak'
* * WITH NORECOVERY
GO

Outcome of the above step:
{myAppNameDB} (restoring...)

Why?

TIA
Sep 4 '08 #2
DL (ta********@gmail.com) writes:
Background Info:
Instance A: SQL Server 2005 on Windows Server 2003 OS
Instance B: SQL Server 2005 on XP Prof w/ SP2

Process:
backup a database on Instance A like this:
step 1 -- Management Studio for Instance A
BACKUP DATABASE myAppNameDB
TO DISK = 'c:\Temp\myAppNameDB_FullRecovery.bak'
GO

step 2 -- copy the .bak file to a network drive and then copy it to
local drive of Instance B

step 3 -- -- Management Studio for Instance B
restore it to target
RESTORE DATABASE myAppNameDB
FROM DISK = 'C:\dbData\myAppNameDB_trueFullRecovery.bak'
WITH NORECOVERY
GO
It's incomplete because you said so. That is, you specified WITH
NORECOVERY, which tells SQL Server that you plan to restore log backups
as well.

If you change your mind, you can say "RESTORE DATABASE db WITH RECOVERY".

--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinf...ons/books.mspx

Sep 4 '08 #3
DL
On Sep 4, 4:55*pm, Erland Sommarskog <esq...@sommarskog.sewrote:
DL (tatata9...@gmail.com) writes:
Background Info:
Instance A: SQL Server 2005 on Windows Server 2003 OS
Instance B: SQL Server 2005 on XP Prof w/ SP2
Process:
backup a database on Instance A like this:
step 1 -- Management Studio for Instance A
BACKUP DATABASE myAppNameDB
* * * * * * * TO DISK = 'c:\Temp\myAppNameDB_FullRecovery.bak'
GO
step 2 -- copy the .bak file to a network drive and then copy it to
local drive of Instance B
step 3 -- -- Management Studio for Instance B
restore it to target
RESTORE DATABASE myAppNameDB
* * FROM DISK = 'C:\dbData\myAppNameDB_trueFullRecovery.bak'
* * WITH NORECOVERY
GO

It's incomplete because you said so. That is, you specified WITH
NORECOVERY, which tells SQL Server that you plan to restore log backups
as well.

If you change your mind, you can say "RESTORE DATABASE db WITH RECOVERY".

--
Erland Sommarskog, SQL Server MVP, esq...@sommarskog.se

Links for SQL Server Books Online:
SQL 2008:http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005:http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000:http://www.microsoft.com/sql/prodinf...ns/books.mspx- Hide quoted text -

- Show quoted text -
Like your witty banter. And I know what "RESTORE DATABASE db WITH
RECOVERY" would do. However, I believe MS knowledge piece about
Database Mirroring specfically requires full restore WITH NORECOVERY.
Anyway, I' ve resolved one key problem in the process.
Sep 5 '08 #4
DL (ta********@gmail.com) writes:
Like your witty banter. And I know what "RESTORE DATABASE db WITH
RECOVERY" would do. However, I believe MS knowledge piece about
Database Mirroring specfically requires full restore WITH NORECOVERY.
Anyway, I' ve resolved one key problem in the process.
I'm not sure what you are trying to say. In any case, I could not see
anything about mirroring in your original post. You will have to excuse,
but while I do bits of SQL Server fairly well, I am less skilled when
it comes to thought-reading.

--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinf...ons/books.mspx

Sep 5 '08 #5

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

Similar topics

1
by: Rene | last post by:
Hi, While restoring the log we receive a message after about 30 minutes: Processed 1152109 pages for database 'restest', file 'sales_Log' on file 1 Server: Msg 9004, Leverl 21, State 20, Line...
0
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...
4
by: xo55ox | last post by:
Hi, Currently, I am on SQL2000 SP3 and Windows 2003. I am trying to restore the full database backup and transaction log backup on the development server. The full database restore is not a...
2
by: Spieg | last post by:
I've a program with VB6 working with SQLServer 2000. I have a Central Station with the program runnin with full prvileges and that can perform all the actions on the DB. There are also some...
5
by: Pagus | last post by:
I have full backup of database at 13:00 and another full backup at 17:00. I've made backup of transaction log at 17:05 When I try to restore database to state at 15:10 (point in time) , the...
13
by: EggsAckley | last post by:
Hi: I have a file that I have been told is a SQL Server backup from a server somewhere. The file is about 200MB in size I am trying to create the database on my local server using RESTORE. I...
2
by: si.downes | last post by:
Using SQL Server 2000 SP3 I'm developing a data warehouse where data will be archived off to a filegroup, this filegroup backed up and the tables in this filegroup truncated to free up space on...
0
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
by: Utahduck | last post by:
I posted this to another group but I must not be subscribed as nothing appeared. Sooo.... I've backed up a databse with the following command: BACKUP DATABASE Thomasville FILEGROUP =...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.