Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

SQL stops working in every 15 days displaying message that
database log file is full. Log file size is 3.95 GB. It is
happening after shrinking the database also. What is
solution to overcome this problem. Please help me as it's
urgent.

Answer Posted / sujay kumar

You should schedule the job for shrinking the database log.
Sometime, it looks impossible to shrink the Truncated Log
file. Following code always shrinks the Truncated Log File
to minimum size possible.
USE DatabaseName
GO
DBCC SHRINKFILE(<TransactionLogName>, 1)
BACKUP LOG <DatabaseName> WITH TRUNCATE_ONLY
DBCC SHRINKFILE(<TransactionLogName>, 1)
GO

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

tell me what are the steps you will take to improve performance of a poor performing query? : Sql server database administration

978


What is the datatype of rowid?

893


1 01 101 01010

2016


Tell me what is use of except clause? How it differs from not in clause?

918


What are the different authentication modes in sql server?

1066


Explain ms sql server reporting services vs crystal reports?

875


What is the difference between the export /import functions in sql studio and standalone sql manager? : sql server management studio

1090


How do you delete a data source?

965


please differentiate between delete and truncate?

955


Please explain that what are the basic functions for master, msdb, model, tempdb and resource databases? : SQL Server Architecture

943


What is the difference between createstatement and preparedstatement?

905


Describe in brief authentication modes in sql server.

983


How do you improve the performance of a SQL Azure Database?

137


Explain the difference between primary keys and foreign keys?

965


can a table be moved to different filegroup? : Sql server administration

933