Re: How do I shrink my logfile?

From: Sydney Lotterby (sydney_at_infosearch.com)
Date: 07/22/04


Date: Thu, 22 Jul 2004 12:22:05 -0500

I followed the instructions in the link but when I run DBCC
SHRINKFILE(mydb_log,2) it says "could not locate mydb_log in sysfiles. I
checked sysfiles and, true, it is not there.
What can I do?

"Narayana Vyas Kondreddi" <answer_me@hotmail.com> wrote in message
news:%23pOUoKAcEHA.3988@tk2msftngp13.phx.gbl...
> See DBCC SHRINKFILE in SQL Server Books Online. Also see:
>
> INF: Shrinking the Transaction Log in SQL Server 2000 with DBCC SHRINKFILE
> http://support.microsoft.com/default.aspx?scid=kb;EN-US;272318
> --
> HTH,
> Vyas, MVP (SQL Server)
> http://vyaskn.tripod.com/
> Is .NET important for a database professional?
> http://vyaskn.tripod.com/poll.htm
>
>
> "Joseph Geretz" <jgeretz@nospam.com> wrote in message
> news:ewNWyDAcEHA.1656@TK2MSFTNGP09.phx.gbl...
> I set my recovery model to simple. I set my database option to AutoShrink.
I
> backed up my database. But the logfile is still 2.3 GB(!). How do I shrink
> this?
>
> Thanks!
>
> - Joe Geretz -
>
>
>



Relevant Pages

  • Re: Disaster freeing space in 200GB database
    ... Run DBCC UPDATEUSAGE to make sure you are seeing accurate information. ... DBCC SHRINKFILE since it gives me a finer degree of control. ... Senior Database Administrator ... data file increased by the amount of data deleted. ...
    (microsoft.public.sqlserver.server)
  • Online process cause application to slow/hang
    ... maintenance like DBCC Indexdefrag and DBCC SHRINKFile? ... Is the DBCC ShrinkFile can locked the whole database? ...
    (microsoft.public.sqlserver.setup)
  • Re: release database unused space
    ... (DBCC DBREINDEX or DBCC INDEXDEFRAG.) ... "Daniel" wrote in message ... > I have deleted 100K records from a table in a database. ... I ran the DBCC shrinkfile & DBCC shrinkdatabase to ...
    (microsoft.public.sqlserver.server)
  • Re: Checkpoint SPID Blocked
    ... > CheckDB and DBCC Checkalloc didn't turn up any allocation errors. ... really need to run DBCC CHECKDB on this database. ... We have a situation where the checkpoint process ... I'd like the problem to go away for good without requiring a restart ...
    (microsoft.public.sqlserver.server)
  • EXCEPTION_ACCESS_VIOLATION Error
    ... One of our clients is using SQL7/SP4 and their database is working correctly ... DBCC CheckDB at our office produces the following: ... DBCC results for 'JagTrain'. ...
    (microsoft.public.sqlserver.server)