Re: Transaction log with huge proportions

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



Set your database to SIMPLE Recovery (Enterprise manager, Right click on
database name .. Properties | Options tab.)
>From Query Analyzer

Use <myDatabaseName>
DBCC SHRINKFILE (<LogicalLogFileName>,<desiredSize>)

You may have to run the command a couple of times.

See BOL for syntax and warnings. And read that chapter I mentioned. Twice.
Soon.

Geoff N. Hiten
Microsoft SQL Server MVP

"francisco - Portugal" <f_batista69@xxxxxxxxxxx> wrote in message
news:D8B2DD82-47FF-437F-B89A-0EEE62E29B55@xxxxxxxxxxxxxxxx
>I konw that i lack some skills, i'm still taking microsoft courses. But
>this
> is an emergency, the problem is that i don't have available disk to run a
> backup, do you have any suggestion?
>
> Please.
>
> --
> Francisco Batista
> Portugal
> f_batista69@xxxxxxxxxxx
>
>
> "Geoff N. Hiten" wrote:
>
>> Your problem is not cluster-specific. It happens on many SQL servers
>> both
>> clustered and non-clustered. You need to manage your transaction log.
>> First, read books-online and learn about SQL Backup and Recovery. You
>> need
>> to decide if you need point-in-time recovery or will a daily/weekly
>> recovery
>> work. If you want point in time recovery, you will need to set up a
>> regular
>> log backup process, otherwise you can set your database to SIMPLE
>> recovery.
>> Once you have the log settings managed correctly, you can use the DBCC
>> SHRINKFILE command to reduce the log down to a normal size. You will
>> need
>> to determine the optimum log size for your specific application. Again,
>> read the chapter on Backing Up and Restoring Databases under
>> Administering
>> SQL Server in BOL for a complete discussion of all the concepts involved.
>>
>> Geoff N.Hiten
>> Microsoft SQL Server MVP
>>
>>
>>
>> "francisco - Portugal" <f_batista69@xxxxxxxxxxx> wrote in message
>> news:884D5523-D0E7-4487-81F9-2E7C1628CBC4@xxxxxxxxxxxxxxxx
>> > Hi all
>> >
>> > My SQL Cluster, has a database with 13Gb, but the transaction log is
>> > huge.
>> > I
>> > already stopped the file from gowing more then it it's but is there a
>> > way
>> > of
>> > reduce this file?)already try to shrink the file without sucess). Can i
>> > for
>> > instance, detach the database an start it with a new log? Or there's a
>> > way
>> > of
>> > forcing the compression of the transaction (ldf) log.
>> >
>> > Best regards
>> > --
>> > Francisco Batista
>> > Portugal
>> > f_batista69@xxxxxxxxxxx
>>
>>
>>


.



Relevant Pages

  • Re: Transaction log with huge proportions
    ... DMS DBCC SHRINKFILE ... > Set your database to SIMPLE Recovery (Enterprise manager, ... >>> SQL Server in BOL for a complete discussion of all the concepts involved. ...
    (microsoft.public.sqlserver.clustering)
  • Re: torn page detection and auto shrink: performance?
    ... And I have up-to-time recovery possibility. ... Curently, database size shows 18GB, but the used space shows 8GB. ... Shirinking files, will cause that by expanding files, sql server will ... There should be enough free space to permit reindexing of this table. ...
    (comp.databases.ms-sqlserver)
  • Re: Restore leaves DB in Loading state
    ... The SQL server is doing precisely what you told it to do. ... Standby means to hold active transactions in the 'standby' file and not ... the database to go live, then you need to 'recover' it. ... just the database name and the recovery command. ...
    (microsoft.public.sqlserver.server)
  • Re: Transaction log with huge proportions
    ... I konw that i lack some skills, i'm still taking microsoft courses. ... If you want point in time recovery, you will need to set up a regular ... otherwise you can set your database to SIMPLE recovery. ... > SQL Server in BOL for a complete discussion of all the concepts involved. ...
    (microsoft.public.sqlserver.clustering)
  • Re: HELP!!! restore database - left in loading state?? PLEASE H
    ... RESTORE DATABASE WITH RECOVERY ... Columnist, SQL Server Professional ...
    (microsoft.public.sqlserver.tools)