can you any body tell me the how to decrease the logfile
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
Answer / rahul
dbcc shrinkfile ( 'databasename', 'size to be shrinked upto
(in mb)')
Is This Answer Correct ? | 0 Yes | 0 No |
How can I create a plain-text flat file from SQL Server as input to another application?
What are the new features in sql server 2016?
What are functions
What is a natural primary key?
What is the openxml statement in sql server?
How m-m relationships are implemented?
What are the High-Availability solutions in SQL Server and differentiate them briefly?
Difference b/w Clustered & non-clustered index? Not the bookish definition, but how they internally works in SQL Server?
What is the use of DBCC commands?
How many full-text indexes can a table have?
What is difference between drop truncate and delete?
Help!!!!!!!!!!!! My database has gone offline, it is highlighted as 'Suspect'. Foolishly, i haven't got a recent back up. Is there a way of quickly restoring the database? Thank you