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

How to list all login names on the ms sql server?

1181


Your table has a large character field there are queries that use this field in their search clause what should you do?

923


How do I completely remove sql server instance?

1143


Why do we use non clustered index?

1130


How to defragment table indexes?

1036


Is it possible to call a stored procedure within a stored procedure?

1026


What is sql server agent and what are the two modes of authentication in sql server?

1108


How to delete a login name in ms sql server?

1125


What is snapshot report?

172


How to use subqueries with the exists operators in ms sql server?

1175


What are binary string data types in ms sql server?

1385


What is the new security features added in sql server 2016? : sql server security

1155


Explain the concepts and capabilities of sql server?

1011


What is optimistic concurrency?

1091


How can I add Reporting Services reports to my application?

132