Re: Error in restoring database from .BAK file
From: Hari (hari_prasad_k_at_hotmail.com)
Date: 05/11/04
- Next message: visDev_at_online.nospam: "Deadlock Manager"
- Previous message: Tibor Karaszi: "Re: Error in restoring database from .BAK file"
- In reply to: vikkas: "Re: Error in restoring database from .BAK file"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 11 May 2004 18:43:32 +0530
Hi Vikas,
No you cant restore the trasaction log file alone. Transaction log can be
restored only in below occasions:-
1. Destination database is standby to ur production database(destination
database must be in read only mode to acept the transaction log)
Other option is :-
1. Restore full database backup with NORECOVERY ( You should have a full
database backup file)
2. After the full database restore, Follow the Transaction log restore
--------------------------------------
> This file contains a transaction log backup, not a database backup.
However, the file might contain several
> backups. I suggest you use RESTORE HEADERONLY to see how many backups
there is on this backup file, and then
> use the FILE parameter to define which you want to restore. If you do not
specify FILE, SQL Server assume the
> first one.
-------------------------------------
Tiber mentioned that ur backup file will be having more than one file, this
can be identified by issuing RESTORE HEADERONLY
with the command. If you have multiple files then you have to use
FILE=file_number during restore.
Thanks
Hari
MCDBA
"vikkas" <anonymous@discussions.microsoft.com> wrote in message
news:CDB0E09D-4EEB-4C46-A968-2FBD1B9F9D15@microsoft.com...
> Again Thnx,
>
> But let me know that can i restore from this transaction log backup file
without having database.. Bcoz i don't have database and try to restore
database from this transaction log backup file.
>
> Vikkas
> --------------------------------------------------------------------------
------------------------------------------------------------------------
> This file contains a transaction log backup, not a database backup.
However, the file might contain several
> backups. I suggest you use RESTORE HEADERONLY to see how many backups
there is on this backup file, and then
> use the FILE parameter to define which you want to restore. If you do not
specify FILE, SQL Server assume the
> first one.
>
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
>
- Next message: visDev_at_online.nospam: "Deadlock Manager"
- Previous message: Tibor Karaszi: "Re: Error in restoring database from .BAK file"
- In reply to: vikkas: "Re: Error in restoring database from .BAK file"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|