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

Describe in brief system database.

1006


What are SSL and TSL protocols?

975


What is Dependency Injection and provide example?

1113


How to call a function from a stored procedure in SQL Server ?

1019


What are the differences between union, intersect, and minus operators?

1079


what's sql server? : Sql server database administration

989


What is dimension table? : sql server analysis services, ssas

1013


What are character string data types in ms sql server?

1235


Explain contrast amongst grouped and non-bunched records?

1010


What can be used instead of trigger?

1150


Do you know what is normalization of database? What are its benefits?

1108


What is the difference between deallocate cursor and close cursor?

1247


What are views used for?

1011


How to disable stored procedure sql server?

1598


How to view the error log for any specific instance? : sql server database administration

1028