dbTalk Databases Forums  

Get lost data from backup and merge into live db

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Get lost data from backup and merge into live db in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
lurc
 
Posts: n/a

Default Get lost data from backup and merge into live db - 06-04-2004 , 02:55 AM






Hi all experts,

One of our customers lost its transaction data during one period, say April
1 to april 30, in live MSSQL 2000 database, and those data can be found back
in backup performed manually one week ago.

Anyone out there can help me get lost data back from backup and merge into
its live db? I am new to it, any suggestion is much appreciated.

--
Best regards,
Lurc



Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Get lost data from backup and merge into live db - 06-04-2004 , 03:34 AM






OK

Restore the backup first of all

The next part might be very difficult.

You can easily compare your backed up version for rows that it contains vs
what is in the production system. You need to be careful about doing it in
the right order for integrity.

The Updates may be a little more difficult.

What if in the restored version you have a row that reads

CustomerID CustomerName CustomerJoinDate CustomerAge
CustomerAdressID
1 John 10/10/2001 30
14

In the production version you have

CustomerID CustomerName CustomerJoinDate CustomerAge
CustomerAdressID
1 John 10/10/2001 31
16



Since the restored version we have updated the Customer Age to 31 from 30
and the user has moved address also.

What do you want to do with this row?

There are going to be some attributes in a row in production that have been
amended correctly and maybe some of the other attribute details are in the
restored version.

Not pretty.

As |I mentioned if it in simply INSERTs then you should just be able to
compare PK values.

--

----------------------------

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"lurc" <lurchot (AT) hotmail (DOT) com> wrote

Quote:
Hi all experts,

One of our customers lost its transaction data during one period, say
April
1 to april 30, in live MSSQL 2000 database, and those data can be found
back
in backup performed manually one week ago.

Anyone out there can help me get lost data back from backup and merge into
its live db? I am new to it, any suggestion is much appreciated.

--
Best regards,
Lurc





Reply With Quote
  #3  
Old   
lurc
 
Posts: n/a

Default Re: Get lost data from backup and merge into live db - 06-04-2004 , 04:38 AM



Hi Allan,

Thanks for your prompt reply.
--
Best regards,
Lurc



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.