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 / rajesh ranjan

In MS SQL Server 2005
select * from sys.database_files
Above Query will return .mdf , .ldf file & all other
details releted to these files of the database
After that you should run following DBCC Statement

DBCC Shrinkfile(Log_file_name.ldf,1,truncateonly)

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are constraints in microsoft sql server?

737


How to Insert multiple rows with a single insert statement?

744


What is the purpose of indexing?

785


What stored by the tempdb ? : sql server database administration

759


Which language is supported by sql server?

703






How will you find out if there are expensive SQL statements running or not?

762


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

795


What is the native system stored procedure to execute a command against all databases?

716


Explain triggers?

754


What is the difference between a primary key and a unique key? Are they the same?

776


How to access the deleted record of an event?

742


What are different types of database indexes?

689


What is the user of Primary key?

737


How to insert new line characters into strings?

721


what is bit datatype and what's the information that can be stored inside a bit column? : Sql server database administration

718