Re: newbie backup question
From: Hari Prasad (hari_prasad_k_at_hotmail.com)
Date: 06/30/04
- Next message: Narayana Vyas Kondreddi: "Re: newbie backup question"
- Previous message: Gerry Viator: "Snap-in failed to initialize on Enterprise Mananger"
- In reply to: Josephine: "newbie backup question"
- Next in thread: Narayana Vyas Kondreddi: "Re: newbie backup question"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 30 Jun 2004 19:58:22 +0530
Hi,
Your data will be moved to MDF file after the checkpoint, SO no worries-
data will be in MDF file. Since the database was in FULL recovery model
those transaction will be there in LDF file and not got truncated.
You can run the below command to truncate the transaction log, there is not
need to backup the log. Even if you backup the transaction log, backup will
not be useful since you turned the recovery to SIMPLE.
How to truncate the transaction log.
1. Login to Query Analyzer
2. Execute the below command to truncate the transaction log
backup log <dbname> with truncate_only
3. After this execute the below comand to see the usage
DBCC SQLPERF(LOGSPACE)
4. If the usage is reduced now youi can shrink the transactionlog file
DBCC SHRINKFILE('logical_ldf_file',truncateonly)
5. After this execute the below comand to see the usage
DBCC SQLPERF(LOGSPACE)
Note:
Since you have changed the Recovery to SIMPLE, now onwards log file will be
truncated after the checkpoint automatically.
Thanks
Hari
MCDBA
"Josephine" <anonymous@discussions.microsoft.com> wrote in message
news:2e4701c45eae$38ad52e0$7d02280a@phx.gbl...
> Please help clear up my confusion...
> I have a database that was set in FULL recovery mode and
> the transaction log was not being backed up. To stop the
> log from growing, I switched it to SIMPLE, but after last
> night's backup I still have a 12 GB log file.
> How do I get the transactions to commit to the .mdf file?
> My concern is the data is just there in the log and if I
> back it up it isn't commited to the .mdf file.
> Backup the log file and then continue with the simple
> recovery backups?
> Is there a way to do this in EM?
> If I do this do I want no_truncate, truncate on chk pt?
> Thanks in advance for help,
> Josie.
>
- Next message: Narayana Vyas Kondreddi: "Re: newbie backup question"
- Previous message: Gerry Viator: "Snap-in failed to initialize on Enterprise Mananger"
- In reply to: Josephine: "newbie backup question"
- Next in thread: Narayana Vyas Kondreddi: "Re: newbie backup question"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|