Re: sqlmaint Question

From: Andrew J. Kelly (sqlmvpnooospam_at_shadhawk.com)
Date: 03/01/05


Date: Tue, 1 Mar 2005 16:52:13 -0500

Are there any long running open transactions that are preventing the
truncation? What does DBCC OPENTRAN say? Did you do a FULL backup before
you started the log backups?

-- 
Andrew J. Kelly  SQL MVP
"kevinsharp69" <kevinsharp69@discussions.microsoft.com> wrote in message 
news:9B3FB572-320F-43C4-9E8F-74726B21BDAC@microsoft.com...
> Actually i'm not looking for it to shrink the file but actually clear the
> transactions that have been backed up. Previous to the backup the log was
> fixed at 60MB and 8.9MB was used, after the backup there was still 8.9MB 
> used.
>
> "pdxJaxon" wrote:
>
>> it's not going to shrink the file and in fact, you probably dont want it 
>> to
>> as Re-Growing the file later is an expensive operation.
>>
>> If you REALLY Need to shrink the file you can use:
>>
>> DBCC ShrinkFile
>> or
>> DBCC ShrinkDatabase
>>
>>
>> Greg Jackson
>> PDX, Oregon
>>
>>
>> 


Relevant Pages

  • Re: Fragmentation Issues
    ... checkalloc if you just ran CheckDB since that is included in checkDB. ... always do a regular log backup so you can use it for what is intended for. ... And lastly don't shrink your database. ... > dbcc showcontig ...
    (microsoft.public.sqlserver.server)
  • Re: Cant shrink log file
    ... Did you look at DBCC OPENTRAN to determine if an open transaction is ... I was trying both and still it doesn't shrink. ... Did you know that a log backup and a full backup are not the same thing? ...
    (microsoft.public.sqlserver.server)
  • Re: Truncating
    ... You have to backup the transaction log and shrink the file. ... Based on the name column for the transaction log file execute the dbcc ...
    (microsoft.public.sqlserver.server)
  • Re: Database/Logs dont shrink with Maintenance Task
    ... Only a shrink file can do that but it may require a backup to get ... Other wise it has to keep growing to make room for more transactions. ... the log file smaller--whether you shrink or not? ...
    (microsoft.public.sqlserver.setup)
  • Re: Log free space question
    ... Did you have a look with DBCC LOGINFO to see where the active VLF is? ... is at the end you can not shrink it until you get it wrapped towards the ... > have Truncate Log ... >>Andrew J. Kelly SQL MVP ...
    (microsoft.public.sqlserver.server)