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 do you understand by mirroring?

660


How many files can a database contain in sql server?how many types of data files exists in sql server? How many of those files can exist for a single database?

742


What is recursion? Is it possible for a stored procedure to call itself or recursive stored procedure? How many levels of sp nesting is possible?

578


What are different types of constraints?

607


When is the use of update_statistics command?

638






what is a traditional network library for sql servers? : Sql server database administration

549


What are locks in sql?

618


Do you know what are acid properties of transaction?

610


What is the difference between a stored procedure and a user defined function?

632


What is the temp table?

622


Explain few examples of RDBMS?

684


How we create SQL Server 2005 Reporting Services ? Give me Sample

1651


Can you tell me some of the common replication dmv's and their use? : sql server replication

615


How to enter date and time literals in ms sql server?

578


How to find a value in another dataset based on current dataset field (ssrs 2008 r2)?

122