adspace


How do you clear a log file?

Answer Posted / Pawan Kumar

You cannot manually clear the transaction log file in SQL Server. Instead, it automatically grows and shrinks as necessary based on transaction activity. To manage the size of the log files, you can set up maintenance plans or use scripts to perform regular backups and shrink the database.

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 the different SQL Server Versions you have worked on?

1080


Can we do dml on views?

1039


If any stored procedure is encrypted, then can we see its definition in activity monitor?

1073


How do I create a trace in sql server?

1121


what is the difference between openrowset and openquery?

1197


What kind of problems occurs if we do not implement proper locking strategy?

1500


How raid can influence database performance?

1119


Can you index views?

955


How to rebuild the master database?

1167


What are the pros and cons of putting a scalar function in a queries select list or in the where clause?

1300


What are the different types of subquery?

1235


What is a coalesce function?

1285


What is an indexed view?

1023


Disadvantages of the indexes?

1225


What are the kinds of subquery?

1109