Re: questions about logging
From: Dan (ddonahue_at_archermalmo.com)
Date: 05/17/04
- Next message: Dan: "Re: questions about logging"
- Previous message: Jacco Schalkwijk: "Re: Why use a backup agent?"
- In reply to: Dan Guzman: "Re: questions about logging"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 17 May 2004 09:14:29 -0500
Thanks Dan
"Dan Guzman" <danguzman@nospam-earthlink.net> wrote in message
news:%233wbyhpOEHA.3988@tk2msftngp13.phx.gbl...
> You should choose a database recovery model based on your recovery
> requirements. If your recovery plan is to simply restore from your last
> full backup, the SIMPLE recovery model is appropriate.
>
> Your transaction log still needs to be sized to accommodate the largest
> single transaction. You can minimize log space requirements and improve
> performance by taking advantage of minimally logged operations
> (SELECT...INTO, 'fast' bulk insert, TRUNCATE) when possible. These
> techniques are commonly used in an ETL process.
>
> A database log file should never be deleted. SQL Server is forgiving in
> many cases but you run the risk of trashing your database when you
manually
> delete a log file. If you need to reduce the size of a log file, use DBCC
> SHRINKFILE.
>
> --
> Hope this helps.
>
> Dan Guzman
> SQL Server MVP
>
> "Dan" <ddonahue@archermalmo.com> wrote in message
> news:OglhqveOEHA.2716@tk2msftngp13.phx.gbl...
> > We're using SS2000. We do a lot of ETL (extract, transform, load) work
and
> > don't really need logs. From what I've read it seems that either a
> > bulk-logged or simple recovery plan would be better than full recovery.
> > Could someone recommend one over the other?
> >
> > We use a lot of DTS packages and we were thinking of truncating the logs
> > before starting a package. I've also seen scripts that loop through the
> > database and truncate logs. I've seen a "backup log dbname with
> > truncate_only" command and I've also seen a script that just deletes the
> log
> > file. Is one way better than another or is there a better way?
> >
> > Thanks,
> >
> > Dan
> >
> >
>
>
- Next message: Dan: "Re: questions about logging"
- Previous message: Jacco Schalkwijk: "Re: Why use a backup agent?"
- In reply to: Dan Guzman: "Re: questions about logging"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|