can you any body tell me the how to decrease the logfile

Answers were Sorted based on User's Feedback



can you any body tell me the how to decrease the logfile..

Answer / vani

The log files must be backed up, so that the inactive log
records are truncated after every checkpoint thus freeing
up the logspace to be reused.

Schrink your database (Database-All task-Schrink database)
leave 10% free and the size of the log will schrink

Is This Answer Correct ?    1 Yes 0 No

can you any body tell me the how to decrease the logfile..

Answer / prasadhari_m@yahoo.com

take a backup using this command
backup log dbname with no_log

Is This Answer Correct ?    1 Yes 0 No

can you any body tell me the how to decrease the logfile..

Answer / lekhrajdeshmukh

We have to decrease the size of a log file by shrinking the
large file.

Syntex:-
DBCC dbname
go
DBCC shrinkfile(filename,sizevalue)
go.
for eg I want to shrink the filename data of databse userdb
to 7 mb.

dbcc userdb
dbcc shrinkfile(data,7)

Is This Answer Correct ?    0 Yes 0 No

can you any body tell me the how to decrease the logfile..

Answer / rahul

dbcc shrinkfile ( 'databasename', 'size to be shrinked upto
(in mb)')

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More SQL Server Interview Questions

Detail about the hardware which is supported by SQL server?

0 Answers  


You have a table with close to 100 million records recently, a huge amount of this data was updated now, various queries against this table have slowed down considerably what is the quickest option to remedy the situation?

0 Answers  


How to check parameter value in stored procedure sql server?

0 Answers  


What are the types of processing and explain each? : sql server analysis services, ssas

0 Answers  


What is side by side migration in sql server?

0 Answers  






What should we do to copy the tables, schema and views from one SQL Server to another?

3 Answers  


What are the steps you can take to avoid “deadlocks”?

0 Answers  


Explain what are db_options used for?

1 Answers   InterGraph,


How do I start sql server 2017?

0 Answers  


What is resource governor in sql server?

0 Answers  


What is identity?

0 Answers  


Can you index views?

0 Answers  


Categories