Re: 1105 - log file getting full - SQL Server 6.5

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Wayne Snyder (wayne.nospam.snyder_at_mariner-usa.com)
Date: 06/18/04


Date: Fri, 18 Jun 2004 08:15:28 -0400

Follow Hari's instructions, backup the transaction log on a regular basis,
especially when doing large deletes..

Additionally, In direct answer to your question, Backup/restore will do
nothing to help you in this..Don't waste your time...

-- 
Wayne Snyder, MCDBA, SQL Server MVP
Mariner, Charlotte, NC
www.mariner-usa.com
(Please respond only to the newsgroups.)
I support the Professional Association of SQL Server (PASS) and it's
community of SQL Server professionals.
www.sqlpass.org
"Mike NG" <sweepdog@deadspam.com> wrote in message
news:Y+4LLABXXi0AFwb4@ntlworld.com...
> I am getting an error along the lines of
>
> Can't allocate space for object 'Syslogs' in database ''corp'' because
> the
> 'logsegment' segment is full. If you ran out of space in Syslogs, dump
> the
> transaction log
>
> when trying to delete data from 'corp' (no it's not the tempdb problem!)
>
> I' increased the size of the logsegment and tried doing something along
> the lines of
>
> SET ROWCOUNT 10
> go
> while (select (count(*) from table) > 0
> begin
>     delete from table
> end
>
> to break the task down which did work.  However about a couple of weeks
> on, I need to do some more deletions on the table, and the log is full
> again - even doing the broken down version above.  I could increase the
> log file again a bit, but a) I need to stop this happening, and b) there
> isn't much disk space left.  I have no control over the disk purchases
> and I think pretty much all the data is needed
>
> I can't do truncate because replication is turned on and it'd be a right
> pain disabaling all the tables I need to do and then turning them back
> on again
>
> I've done DUMP transaction corp with no_log but this either fails or
> doesn't recover any space.  DBCC Checktables didn't do a right lot
> either (excuse me for my vagueness, but my notes are at work and I need
> a solution for Saturday morning)
>
> I have tried putting the database into single user modem but this has
> always failed since I haven't been the exclusive user of it.  I doubt
> very much that it will work if I tried it at the weekend
>
>
> So someone has suggested doing a backup of corp and restoring it again.
> Is this going to work.  The database has separate data and log devices
> (rather than shared).  Any thoughts on whether this is going to work
> would be appreciated.  Did I remember seeing an option somewhere that
> would select whether the log file would be copied or not, or was I
> dreaming.
>
> Any help greatly appreciated
>
> Many thanks
> -- 
> Mike
> Please post replies to newsgroup to benefit others
> Replace dead spam with ntl world to reply by email


Relevant Pages

  • RE: Backups have Shadow Copy Problems
    ... with volume Shadow Copy error 800423f4. ... You back up data from a volume that contains a Microsoft SQL Server ... The recovery model of the SQL Server database is configured to use an ... It just ensures backup will continue without reporting the error. ...
    (microsoft.public.windows.server.sbs)
  • Re: Large Transaction Log Backup after Database Backup
    ... script and see for yourself that the database backup doesn't truncate the ... ALTER DATABASE steve SET RECOVERY FULL ... But my understanding was that the transaction log was> truncated after a full database backup. ...
    (microsoft.public.sqlserver.server)
  • Re: Transaction Log Size
    ... Backup database does not empty the transaction log files. ... How to Shrink the SQL Server 7.0 Transaction Log ...
    (microsoft.public.sqlserver.server)
  • Disaster Averted?
    ... Some process, unknown at this point, flooded a transaction log to the point ... the .mdf file was 0 bytes according to EM. ... Following the backup, I ... the database was now Suspect! ...
    (microsoft.public.sqlserver.server)
  • Re: backup advise
    ... When I run a backup of a database, does it automatically clean out the ... No. Backing up the database and backing up the transaction log are two ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ...
    (comp.databases.ms-sqlserver)