Mr or Mrs. 500
Group: General Forum Members
Last Login: Friday, November 01, 2013 1:02 AM
could you plz explain me the restore scenarios.Need test cases, like
1.ldf deleted what is the procedure to restore?
2.mdf deleted what is the procedure to restore?
3.master data base is deleted what is the procedure to restore?
4.backup file corrupted what is the procedure to restore?
5.data in table corrupted?
everything to the point in time.In development box I need to generate these scenarios n document,sothat in future if come acroos any of the tested n documented scenario, we can reduce the down time.
So to generate the scenarios,iam continuosly inserting data from one table to other in the same database.I want to test all the possible restore scenarios on this database,iam inserting data to generate some log.before deletind database or ldf take thew row count n after restoring make sure we are getting same row count or not.if not why we are not getting?
Declare @total bigint
Declare @total1 bigint
DECLARE @DATE DATETIME
SET @DATE = GETDATE()
SELECT @TOTAL = COUNT(*) FROM dbo.TEST1
WHILE @DATE < GETDATE()+1
INSERT INTO dbo.TEST
SELECT * FROM dbo.TEST1
SELECT @TOTAL1 = COUNT(*) FROM dbo.TEST
WAITFOR DELAY '00:01:00:00'
IF @TOTAL1 > (@TOTAL*5)
TRUNCATE TABLE dbo.TEST
Full backup 2am
Diff every 6hrs
log backup every 15 min.
plz tell me the possible restore scenario I can test for above backup strategy.