Академический Документы
Профессиональный Документы
Культура Документы
LDF'
transaction log file
DESCRIPTION
COMMENTS
The transaction log file stores the details of all the modifications that you
perform on your SQL Server database and the details of the transactions that
performed each modification. Because the transactional integrity is considered
a fundamental and intrinsic characteristic of SQL Server, logging the details of
the transactions cannot be turned off in SQL Server.
The SQL Server default (except local editions) leaves the databases in full
recovery mode, which means that if the regular backups of the transaction log
are not performed, the transaction log file grows to fill the disk, and you may not
be able to perform any data modification operations on the SQL Server
database.
RECOMMENDATIONS
1. You can change the recovery model from full to simple if you do not want to
use the transaction log files during a disaster recovery operation.
To stop the transaction log file (.ldf) from growing:
MS SQL Studio Manager -> Right click on the database ->Properties-> Options-
> Set model to simple--> OK.
Query:
sp_dboption [dbname], 'trunc. log on chkpt.', 'true'
go
go
*Here db_log_name is the logical name of the transaction log being truncated
Query1:
sp_detach_db [db_name]
Query2:
sp_attach_single_file_db [db_name], [filename]
NOTE
For more information about shrinking the transaction log files, see the following
Microsoft Knowledge Base articles:
- http://msdn.microsoft.com/en-us/library/aa174538%28SQL.80%29.aspx;
- http://support.microsoft.com/kb/873235/en-us.
Reducir el tamaño del archivo de registro de
transacciones 'DeviceLockDB_log.LDF'
DESCRIPCIÓN
El registro de transacciones de la base de datos
DeviceLock 'DeviceLockDB_log.LDF' crece
demasiado en un corto período de tiempo.
COMENTARIOS
El archivo de registro de transacciones
almacena los detalles de todas las
modificaciones que realiza en su base de datos
de SQL Server y los detalles de las
transacciones que realizaron cada
modificación. Debido a que la integridad
transaccional se considera una característica
fundamental e intrínseca de SQL Server, el
registro de los detalles de las transacciones no
se puede desactivar en SQL Server.
Consulta:
sp_dboption [dbname], 'trunc. inicie sesión en
chkpt. ',' true '
ir
Consulta1:
sp_detach_db [nombre_bd]