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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between aggregate and analytic function?

673


What is failover clustering overview?

789


How does a profiler work?

678


What is user-defined function?

746


What is the security principal at the server level that represents your session?

807


What is the difference between char, varchar and nvarchar?

781


What is use of except clause? How does it differ from not in clause?

751


How do I shrink an ldf file?

753


What is temporary stored procedure?

731


What protocol does sql server use?

719


What is recompile sql server?

776


How many databases Microsoft SQL server provides?

804


What is triggers and stored procedures?

708


How many types of database relationship in sql server?

773


what are the steps you will take to improve performance of a poor performing query? : Sql server database administration

721