Re: Point in time recovery
- From: "Tibor Karaszi" <tibor_please.no.email_karaszi@xxxxxxxxxxxxxxxxxx>
- Date: Thu, 24 Jan 2008 20:21:28 +0100
Restore will not let you get an inconsistent views of a database. But that I mean that it won't allow for a restore where some objects are from one point in time and other objects are from another point in time. You can restore up to 10:05 into a new database name and move the desired data (TEST2) from there into the production database.
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi
"Smith" <naissani@xxxxxxxxxx> wrote in message news:3C7DF62C-9595-4750-A6B4-6D7F695B4D85@xxxxxxxxxxxxxxxx
Hi Professionals,
Following are my queries and I want to recover the table (Test2) with data and recover all the test1 data. I would appreciate if you can let me know the commands.
use eZSale
go
create table TEST1 (ID INT, NAME VARCHAR(50))
create table TEST2(ID INT, NAME VARCHAR(50))
--Time:10:01
BACKUP DATABASE eZSale to disk = 'C:\TEMP\test_FullDb.BAK'
--Time:10:02
INSERT INTO TEST1 SELECT 1, 'AFTER FULL BACKUP'
INSERT INTO TEST2 SELECT 1, 'AFTER FULL BACKUP'
--Time:10:03
BACKUP LOG eZsale to disk = 'c:\Temp\test_Logbk.BAK'
--Time: 10:04
INSERT INTO TEST1 SELECT 2, 'AFTER LOG BACKUP'
INSERT INTO TEST2 SELECT 2, 'AFTER LOG BACKUP'
INSERT INTO TEST2 SELECT 3, 'AFTER LOG BACKUP..SECOND ENTRY'
--Time: 10:05
DROP TABLE TEST2
--Time: 10:06
BACKUP DATABASE eZSale to disk = 'C:\TEMP\test_DiffDb.BAK' with differential
--Time: 10:07
INSERT INTO TEST1 SELECT 4, 'AFTER DIFFERNTIAL BACKUP'
INSERT INTO TEST1 SELECT 5, 'AFTER DIFFERNTIAL BACKUP..SECOND ENTRY'
.
- Follow-Ups:
- Re: Point in time recovery
- From: Smith
- Re: Point in time recovery
- References:
- Point in time recovery
- From: Smith
- Point in time recovery
- Prev by Date: Point in time recovery
- Next by Date: Re: Point in time recovery
- Previous by thread: Point in time recovery
- Next by thread: Re: Point in time recovery
- Index(es):
Relevant Pages
|
Loading