Re: recover mode and the transaction log file question

From: Andrew J. Kelly (sqlmvpnoooospam_at_shadhawk.com)
Date: 04/13/04


Date: Mon, 12 Apr 2004 21:01:20 -0500

Thanks Dan, I should have mentioned that.

--
Andrew J. Kelly  SQL MVP
"Dan Guzman" <danguzman@nospam-earthlink.net> wrote in message
news:eBl$JADIEHA.3988@tk2msftngp13.phx.gbl...
> To add to Andrew's response, you need to perform a full backup after
> changing the recovery model to FULL.
>
> --
> Hope this helps.
>
> Dan Guzman
> SQL Server MVP
>
> "Kent Eilers" <kent@kaeServices.com> wrote in message
> news:shlec.33467$YC5.30597@twister.rdc-kc.rr.com...
> > It's been about seven years since i've worked with SQL Server...(ouch)
and
> > I"ve been playing around with it on my home PC.
> >
> > My goal is to get the transaction log filled.  I've reviewed the new
> > 'recovery mode' options and have set the recovery mode for my test
> database
> > to 'full' with the following command:
> >
> >     <alter database leads set recovery full>
> >
> > I have setup the log file to not grow at all.  It is set at 3 MB.
> >
> > I then have added records into a table with an insert statement.
> >
> > I check the log file status using the "DBCC SQLPERF(logspace)"  command
> > after every insert.
> >
> > I can get the 'log file' full message triggered if I insert a large
enough
> > batch.  If I insert smaller amounts of data the log space fluxuates -up
> and
> > down!  It maxes out in the 60 - 70 % full then is at 20% after the next
> > insert!
> >
> > It this the correct behavior given the recovery mode/T-log parameters
I've
> > mentioned above?  If so what am I missing here?  It seems like the
> database
> > is doing automatic truncate log commands behind my back - but nothing of
> the
> > sort is being logged in the SQL Server log files.
> >
> > Any feedback much appreciated.
> >
> > --
> > kent eilers
> > kent@kaeServices.com
> >
> >
>
>


Relevant Pages

  • Re: Log shrinking in simple recovery
    ... "Robert Richards via SQLMonster.com" wrote in message ... > I am running in Simple Recovery on SQL 2K. ... I have a log file that is ...
    (microsoft.public.sqlserver.server)
  • Re: PerfMon recording to SQL 2005
    ... I've been out of the SQL world for a couple years so dusting ... A System DSN, specifying windows authentication, and change to an ... Configuring the log file, choose the tested DSN as the System DSN ... The user account I created in SQL is an owner of the ...
    (microsoft.public.sqlserver.server)
  • Re: PerfMon recording to SQL 2005
    ... I've been out of the SQL world for a couple years so dusting off ... A System DSN, specifying windows authentication, and change to an existing ... Configuring the log file, choose the tested DSN as the System DSN ... The user account I created in SQL is an owner of the ...
    (microsoft.public.sqlserver.server)
  • Re: Security Update for SQL Server 2005 Service Pack 2 (KB948109)
    ... through the latest log file Summary.txt under the directory C:\Program ... SQL Express Features: ... that the account and domain running SQL Server Setup exist, ... have the administrator permissions required to rename a file: C: ...
    (microsoft.public.windowsupdate)
  • Re: Recovery Model Question.
    ... I run this sql script through Query Analyzer: ... to any databases!I check the recovery model and remains unfortunately full ... I want to change massive all the 200 databases recovery ...
    (microsoft.public.sqlserver.tools)