Answered by:. Archived Forums. Sign in to vote. Thursday, December 2, PM. Proposed as answer by yup. Friday, December 3, AM. One thing that I see a lot of administrators ask about is transaction log size and how to truncate it. Log records that are not managed correctly will eventually fill up the disk causing no more modifications to the database. Transaction log growth can occur for a few different reasons. Long running transactions, incorrect recovery model configuration and lack of log backups can grow the log.
Shrinking log files are necessary to create room for new log files. Every modification in the data files creates log files. Therefore, the number of these files is increasing rapidly. Hence, shrinking such files is a suitable method to cope up with this rapid growth. You need to shrink log file in sql server to create their backup. It is very essential to secure important data. The transaction log contains the information of the process. So, it is designed to restore the whole data of a database system.
Therefore, you should reduce transaction log size sql server and make its backup. A shrink operation creates free usable space within the transaction log. It does not delete any file. This operation only relocates files. So, it will be helpful after performing a large number of transaction activities that create more log files. If your database has a big file, it consumes a good portion of the drive to take hold of its fragmentation; and when you go on defragmenting it, the free space becomes limited.
That is why it is necessary to have plenty of free space on disk and make sure it remains intact by performing defragmentation on a regular basis. It is very important to check your database size before you go on making any decision about reducing its size. Primary data file is the beginning or basic file of a database and it connects a database to other database files. A database can have only one primary data file.
The extension used for primary data file is. These are the data files that are other than the primary data files. Many databases might not have secondary data files, while some databases have more than one secondary data files. The extension used for these files is. The log files contain all the information that is related to and used for database recovery.
0コメント