Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


restoring dropped table


restoring dropped table

Author
Message
selvisirumalar.mariasusai
selvisirumalar.mariasusai
Forum Newbie
Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)

Group: General Forum Members
Points: 7 Visits: 27
Hi ,

Accidentally a script deleted certain tables in my sql server database.
Is there any means by which I can restore the table data.
I used the command "FLASHBACK TABLE tcm_counter TO BEFORE DROP"
but it is not working out.
Please help me in restoring the table.
michaela
michaela
Ten Centuries
Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)

Group: General Forum Members
Points: 1401 Visits: 440
You can do flashback in Oracle, not sql.
Restore your db to a copy - make sure you don't overwrite your mdf and ldf - from a backup that has the table you're after.
Then create the table structure on your db (CREATE TABLE...)
Then run INSERT INTO your_db.dbo.tblname SELECT * FROM copy_db.dbo.tblname
Check and drop the copy_db.
You restore from a backup only the whole db, not separate object within.
Good luck



selvisirumalar.mariasusai
selvisirumalar.mariasusai
Forum Newbie
Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)

Group: General Forum Members
Points: 7 Visits: 27
Hi ,

Thanks for your reply .
But I couldn't articulate the following line of yours.

" Restore your db to a copy - make sure you don't overwrite your mdf and ldf - from a backup that has the table you're after. "

I dont have any latest back up of my db..
Is it possible to do something with the transaction log ..

regards
M.Malar.
Andras Belokosztolszki
Andras Belokosztolszki
Ten Centuries
Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)

Group: General Forum Members
Points: 1385 Visits: 1585
Have a look at Red Gate's SQL Log Rescue. It will restore your table based on the transaction log and earlier backups. It is a free tool and it works with 2000 only.

Disclaimer: I work for Red Gate, and I wrote the engine of the tool in question.


Regards,
Andras



Andras Belokosztolszki, MCPD, PhD
GoldenGate Software
selvisirumalar.mariasusai
selvisirumalar.mariasusai
Forum Newbie
Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)

Group: General Forum Members
Points: 7 Visits: 27
Dear Andras,

I have downloaded the tool. It works fine.

Really such a nice tool and very user friendly also.
So so thanks.

I was able to recover certain tables but not all the tables .

Anyhow thanks a lot.
selvisirumalar.mariasusai
selvisirumalar.mariasusai
Forum Newbie
Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)

Group: General Forum Members
Points: 7 Visits: 27
Andras,

I have downloaded the tool .
It works fine.

It is a very nice tool and very userfriendly.

I could retrive certain tables but not all the tables.

Anyhow thanks a lot for you ..
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search