Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mydatabase.LDF file size is greater than Mydatabase.MDF 1

Status
Not open for further replies.

smuralig

IS-IT--Management
Dec 26, 2002
10
IN

Hi,

What could be the reason for the logfile ( .LDF ) size is greater than datafile ( .MDF ) size in DATA folder of database server and How to solve the problem ?

Please help,

Thanks and Regards,

Murali
 
1.issue Checkpoint
2.Backup log with trncate_only --(if full recovery model)
step 2 can be skipped if with simple recovery model
3.DBCC srinkfile (logfile name)



 
Are you doing backups?

Are you just doing a FULL BACKUP?

You should be doing full backups and either backing up the transaction log or doing what Claire suggests.

For Your Knowledge- the transaction log is a log of EVERY transaction that took place since the last full backup.

-SQLBill
 
TYPO Alert:

This:

For Your Knowledge- the transaction log is a log of EVERY transaction that took place since the last full backup.


Should have read:

For Your Knowledge- the transaction log is a log of EVERY transaction that took place since the last transaction log backup.

-SQLBill
 

Thank you ClaireHsu and SQLBill,

I issueed Checkpoint in QA and then shrinkfile in EM. The log file became to normal size then. This had done with the user sa. But In begining I tried to do the same with another user which has got dbo role was not possible. what could be the wrong.

Thanks and Regards,

Murali
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top