![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Is the procedure to change database recovery model from full to simple?Is ot only change in properties or we need do something more.I would like to have very small transaction log after this operation. |
#3
| |||
| |||
|
|
Is the procedure to change database recovery model from full to simple?Is ot only change in properties or we need do something more.I would like to have very small transaction log after this operation. If you all you want to achieve is to switch to simple recovery, all you need is ALTER DATBASE db SET RECOVERY SIMPLE What about active VLF?Are they still active? |
|
(Unless you are into replication.) there is no replication |
|
If you also want to reduce the size of the log file, you also need to run DBCC SHRINKFILE on the log file. Try to estimate what size you wil need, and use this as target size when shrinking the file. It's useless to shrink the file to just a few megabytes if it will grow again. Keep in mind, that even with simple recovery, the log is still written to, and if you run large mass-updates, you may still need some log size. Better is backup log file and then shrink, sometimes 2-3-4 times. |
#4
| |||
| |||
|
|
What about active VLF?Are they still active? What to do in order to all transaction were in database (mdf) |
|
Better is backup log file and then shrink, sometimes 2-3-4 times. |
#5
| |||
| |||
|
|
If you are shrinking your log 2-3-4 times, you are shrinking it 2-3-4 times too many. Shrinking the log (or the database file) should be an exceptional event, and nothing you do as matter of routine. Sorry but You are wrong. Tray: |
#6
| |||
| |||
|
|
If you are shrinking your log 2-3-4 times, you are shrinking it 2-3-4 times too many. Shrinking the log (or the database file) should be an exceptional event, and nothing you do as matter of routine. Sorry but You are wrong. Tray: 0.Do something on databest fer example Insert 1000 rows and 1.Backup Log + shrink log file 2.Check size of file After 3-4 times doing point 1 and 2 file will be smaller . Explaination is easy: VLF 's with status active after backup log is moving to the begining of file. A |
![]() |
| Thread Tools | |
| Display Modes | |
| |