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 |
What is Schema in Database?
What are sql server functions?
Can we use where clause with group by?
how can you select rexcord(rows) from table A which is not present in Table B . Id being the FK in Table B referencing to ID Table A
How we create SQL Server 2005 Reporting Services ? Give me Sample
Find top Nth employee from each department in terms of salary?
How to remove duplicate rows from table?
In which year relase the 7.0& 2000 & 2005?
Do you know the cursor types?
What is the need for group functions in sql?
How to generate create procedure script on an existing stored procedure?
How to optimize stored procedures in sql server?