Welcome to the { mindfrost82.com } forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Programming > Databases > General SQL Server Support

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-31-2008, 11:45 AM
Jim
 
Posts: n/a
Can a dropped table be recovered?

I'm guessing the answer is 'no', but I thought I'd ask. Basically we have a
client where it looks like someone has issued a DROP TABLE command - or at
least so far as we can tell. The table certainly isn't there.

No backups, of course. That would be _too_ easy.

MSSQL2000 (actually MSDE).

Any thoughts appreciated.

Jim
--
http://www.ursaMinorBeta.co.uk http://twitter.com/GreyAreaUK

"Sometimes when I talk to a Windows person about using a Mac,
I feel like I'm explaining Van Halen to a horse." Merlin Mann
Reply With Quote
  #2 (permalink)  
Old 07-31-2008, 02:31 PM
Hugo Kornelis
 
Posts: n/a
Re: Can a dropped table be recovered?

On Thu, 31 Jul 2008 11:45:15 +0100, Jim wrote:

>I'm guessing the answer is 'no', but I thought I'd ask. Basically we have a
>client where it looks like someone has issued a DROP TABLE command - or at
>least so far as we can tell. The table certainly isn't there.
>
>No backups, of course. That would be _too_ easy.
>
>MSSQL2000 (actually MSDE).
>
>Any thoughts appreciated.
>
>Jim


Hi Jim,

The simple answer is, indeed, 'no'.

But there might still be *some* hope.

If the DROP TABLE was executed from within a transaction and that
transaction has not yet been committed, you can roll it back. But I
guess that this is not the case here. :)

Which means that only one hope remains - purchase a third-party product
(or download a trial version) that is able to read the log file and
reconstuct the table from that information. Whether this succeeds
depends on the recovery model used for the database, but it's always
worth a shot.

Well-known third-party programs that are able to read and decode the SQL
Server log are:
* Red Gate's SQL Log Rescue
http://www.red-gate.com/products/SQL...scue/index.htm
* Lumigent Log Explorer for SQL Server
http://www.lumigent.com/products/log_explorer.html
* ApexSQL Log
http://www.apexsql.com/sql_tools_log.asp

--
Hugo Kornelis, SQL Server MVP
My SQL Server blog: http://sqlblog.com/blogs/hugo_kornelis
Reply With Quote
  #3 (permalink)  
Old 07-31-2008, 03:06 PM
Jim
 
Posts: n/a
Re: Can a dropped table be recovered?

On 2008-07-31, Hugo Kornelis <hugo@perFact.REMOVETHIS.info.INVALID> wrote:
> On Thu, 31 Jul 2008 11:45:15 +0100, Jim wrote:
>
>>I'm guessing the answer is 'no', but I thought I'd ask. Basically we have a
>>client where it looks like someone has issued a DROP TABLE command - or at
>>least so far as we can tell. The table certainly isn't there.
>>
>>No backups, of course. That would be _too_ easy.
>>
>>MSSQL2000 (actually MSDE).
>>
>>Any thoughts appreciated.

>
> Hi Jim,
>
> The simple answer is, indeed, 'no'.
>
> But there might still be *some* hope.
>
> If the DROP TABLE was executed from within a transaction and that
> transaction has not yet been committed, you can roll it back. But I
> guess that this is not the case here. :)


Sadly no transaction, and it's been rebooted by the client a few times as
well.

The odd thing is that I'd swear no-one there knows any SQL at all, so I
can't see one of them issueing a DROP command. The table is, however, not
there. Weird.

Not to worry. Thanks for the links though.

Jim
--
http://www.ursaMinorBeta.co.uk http://twitter.com/GreyAreaUK

"Sometimes when I talk to a Windows person about using a Mac,
I feel like I'm explaining Van Halen to a horse." Merlin Mann
Reply With Quote
  #4 (permalink)  
Old 07-31-2008, 06:11 PM
Hugo Kornelis
 
Posts: n/a
Re: Can a dropped table be recovered?

On Thu, 31 Jul 2008 15:06:51 +0100, Jim wrote:

>Sadly no transaction, and it's been rebooted by the client a few times as
>well.


Hi Jim,

Rebooting doesn't clear the transaction logs. Backing up the log does
(but then you have the log backup to use), as well as truncating the log
or having the database in simple recovery (and in either of these two
cases, you're (or rather, the client is) hosed.

--
Hugo Kornelis, SQL Server MVP
My SQL Server blog: http://sqlblog.com/blogs/hugo_kornelis
Reply With Quote
  #5 (permalink)  
Old 08-01-2008, 07:01 AM
Jim
 
Posts: n/a
Re: Can a dropped table be recovered?

Hugo Kornelis <hugo@perFact.REMOVETHIS.info.INVALID> wrote:

> Rebooting doesn't clear the transaction logs. Backing up the log does
> (but then you have the log backup to use), as well as truncating the log
> or having the database in simple recovery (and in either of these two
> cases, you're (or rather, the client is) hosed.


It was in Simple mode. Honestly, it's like they *try* to make things
difficult.

Jim
--
'Cloverfield' in nine words: "What is it?!" "We're gonna die!" BOOM!
Roll credits.

http://www.ursaminorbeta.co.uk http://twitter.com/greyareauk
Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Programming > Databases > General SQL Server Support


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 12:06 PM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0


Sponsors:
Credit Cards | Internet Advertising | Personal Loans | Loans | Mortgage Loans



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114