all groups > sql server programming > september 2004 >
You're in the

sql server programming

group:

Transaction log



Transaction log Just D.
9/15/2004 9:33:44 PM
sql server programming: Can we restore the MSSQL Server 2000 database from the transaction log?

Just D.

Re: Transaction log Hari Prasad
9/16/2004 12:13:52 AM
Hi,

You can restore a transaction log. I feel that you have only a LDF file and
you need to recover the database. It is not possible to do so.

Only way to restore the transaction log is:-

1. Your database should be in FULL ot BULK_LOGGED recovery model
2. SHould have a full database backup
3. Should have the subsequent transaction log backup

If you have the above 3 than you could

1. Retsore the fullbackup with norecovery
2. restore all the subsequent transaction log backup in sequence with
norecovery
3. restore the last transaction log with recovery.

Thanks
Hari
MCDBA



[quoted text, click to view]

Re: Transaction log Bryan
9/16/2004 4:43:49 AM
If you are asking if you can restore a database from using only transaction
logs, the answer is no. You need the last database backup and sequential
transactions to restore to a specific point in time. Transaction logs are
applied to a physical database schema. To restore fro logs only is like
saying "DELETE FROM Customers" (This being a transaction) when the Customers
table does not exist, or anything else (including the database object
itself) for that matter.

--
Bryan Bitzer MCP
Senior Database Administrator
Marshall & Swift / Boeckh
www.msbinfo.com

[quoted text, click to view]

Re: Transaction log Just D.
9/16/2004 5:57:55 AM
Hi Bryan,

Thank you for your answer. Actually the full backup was about 2 am and the
database table was wrongly updated about 5 pm. The transaction log should
be alive and if it was posible to recover this table it would be good. Where
can I read about it a little bit more? I know that in Sybase, particularly
in ASA, we can restore the whole database using the log file. If it's
posible in MSSQL Server 2000, please anybody let me know how and where can I
get this algorithm, step by step.

Thanks,
Just D.

[quoted text, click to view]

AddThis Social Bookmark Button