Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 Database table recovery

Author  Topic 

rajkishor09
Starting Member

2 Posts

Posted - 2010-11-10 : 13:48:54
i accidentally dropped two tables from my database. i take daily back-up at day end. this mess happened in afternoon so i have back up of last day not from morning to noon. is it possible to recover those tables anyhow. i am novice in this work. if possible please provide details on recovery.

Thanks

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-11-10 : 13:52:47
What recovery model is the database using? If it's FULL or BULK_LOGGED, how often are you running transaction log backups.

Restore your database to a new database name, then copy the dropped table using this:
SELECT *
INTO Db1..Tbl1
FROM Db2..Tbl1

Don't forget to script out indexes, keys, etc as SELECT INTO doesn't grab those.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

rajkishor09
Starting Member

2 Posts

Posted - 2010-11-10 : 14:25:38
as i said i am novice in this, i am backing up DB from my app using "BACKUP DATABASE [BillDB] TO DISK = N'C:\AS\Debug\BackUp\BackUp_11-10-2010.bak' WITH NOFORMAT, NOINIT, NAME = N'BillDB-Full Database Backup', SKIP, NOREWIND, NOUNLOAD, STATS = 10" command.

Only this command is used for backup nothing else, this creates .bak in predefined folder. I am using SQL Server 2005 Express.

Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-11-10 : 14:38:58
Then you can only recover to a full backup. You can not recover anything after the full backup.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -