Re: How to "undo" a delete with cascades



(dsfsdfs878@xxxxxxxxxxxxx) writes:
> Somebody accidently deleted a record with cascade deletes
> and took out about 80 records.
>
> The database has been used heavily since then.
>
> How do I put back the data?
>
> I have spent hours researching BOL and all I can find
> is how to restore the database to a point in time.
>
> But that will lose all the work done after the mistake.
>
> (We do a full backup every week and log backup every day)
>
> Is there a standard way to do this?

Yes, if you have bought one of those log-viewer tools, that offers
this function (by reading the transaction log, and from that generates
a script.) Check out http://www.lumigent.com and http://www.logpi.com
for two offerings.


--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinfo/productdoc/2000/books.asp

.



Relevant Pages

  • Re: Pb with on delete cascade... HELP!!!
    ... Cascading foreign keys for update and delete were introduced in SQL Server ... > I really don't understand what is wrong with my database... ... use this "DELETE ON CASCADE" command:o( ...
    (microsoft.public.sqlserver.programming)
  • Re: Pb with on delete cascade... HELP!!!
    ... Make sure that u used ON DELETE CASCADE ... > The parameter of the compatibility level of my database is 70, so it seems to be OK according to the documentation of SQL server 2000 to use the key word "CASCADE". ... > "Ninizzzzz" wrote in message ...
    (microsoft.public.sqlserver.programming)
  • Re: Backing up transaction logs gives poor performance.
    ... I have a problem with SQL server being very slow to access and use while I'm backing up transaction logs. ... On one of the apps there's a database with a 11.5GB .mdf file, ... Transaction log backup files from this database are typically about 20MB while the application is busy. ... The users of both apps complain of the same problem - intermittent slowness so bad it sometimes makes the app unusable. ...
    (microsoft.public.sqlserver.setup)
  • Backup Exec and MS SQL Server 2005
    ... I'm trying to do a log backup of a SQL Server 2005 database with Backup Exec v11d (incl. ...
    (comp.databases.ms-sqlserver)
  • Re: Pb with on delete cascade... HELP!!!
    ... The parameter of the compatibility level of my database is 70, so it seems to be OK according to the documentation of SQL server 2000 to use the key word "CASCADE". ...
    (microsoft.public.sqlserver.programming)