Re: Log file is increeasing too much
From: Peter Yeoh (nospam_at_nospam.com)
Date: 10/14/04
- Next message: Oskar: "Ultra SCSI 320"
- Previous message: Psycho: "Log file is increeasing too much"
- In reply to: Psycho: "Log file is increeasing too much"
- Next in thread: Psycho: "Re: Log file is increeasing too much"
- Reply: Psycho: "Re: Log file is increeasing too much"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 14 Oct 2004 14:24:30 +0800
If you are using the FULL recovery model, you would need to backup the log
before it can be reused. Otherwise, you might consider using the simple
recovery model.
Another possibility is that your import process is done within one
transaction, hence all the data is either committed or rolled back. If this
was the case (and you are using the simple recovery model), you might
consider breaking the import into smaller transactions.
If you are deleting everything initially, you might also consider using the
TRUNCATE TABLE option as the row deletion is not individually logged.
-- Peter Yeoh http://www.yohz.com Need smaller SQL2K backup files? Use MiniSQLBackup Lite, free! "Psycho" <Psycho@discussions.microsoft.com> wrote in message news:26E3911D-CEA7-4389-8E26-1E76B3EEDF11@microsoft.com... > Hi > i have a database and a proccess which delete everything from database and > then import some stuff from other databases. > how can i reduce to increase log file because sometimes import stops because > of it. > I use the following procedures : > > backup log mydatabase with truncate_only > dbcc shrinkdatabase (mydatabase) > > i was wondering if it's any possible way to put a maximum size for log file > and when it get to the maximum file size to override the existent logs and > not raise me the error that "The log file for database 'mydatabase' is full. > Back up the transaction log for the database to free up some log space." > > thanks in advance
- Next message: Oskar: "Ultra SCSI 320"
- Previous message: Psycho: "Log file is increeasing too much"
- In reply to: Psycho: "Log file is increeasing too much"
- Next in thread: Psycho: "Re: Log file is increeasing too much"
- Reply: Psycho: "Re: Log file is increeasing too much"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|