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 to apply cascading referential integrity in place of triggers?
Explain Geography datatype in SQL Server
what is the out put of below queries? a. select * from Emp where null = null; b. select * from Emp where 1=1;
What is the difference between ‘having’ clause and a ‘where’ clause?
What is the maximum size of column in sql server?
Is SET a SQL Keyword?
What are the properties of the transactions?
What are the advantages of using stored procedures? Please don't simply say compilation time will be saved as they are already complied. Please specify some other advantages.
How do I view views in sql server?
What is data source view or dsv? : sql server analysis services, ssas
What is the purpose of using COLLATE in a query?
Please explain the characteristics of a transaction server for example atomicity, consistency, isolation, durability?
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)