Mengapa Autoshrink Harus Dimatikan?
Posted on 11th February 2008 by Ilham Rizqi SasmitaDari artikel Cara Menghapus Data Lama dengan SQL, Cara Rebuild Index dengan SQL, dan Cara Merampingkan Database dengan SQL, Anda tentu bertanya-tanya: mengapa caranya begitu manual dan bertele-tele? Bukankah Microsoft SQL Server menyediakan opsi Autoshrink? Berikut penjelasannya.
Saya kutip dari Microsoft SQL Server Development Customer Advisory Team : DB Autoshrink option may introduce high fragmentation:
Issue
We have seeing some strange behavior when rebuilding indexes.
- Total Fragmentation prior to rebuild is 99%.
- You rebuild the index. (using both the alter index and the dbcc dbreindex)
- Fragmentation is at 0%
- You recheck fragmentation about a minute later.
- Fragmentation is at 99% again.
- You have verified that there are no DML’s being done on that table.
Analysis
We noticed that the database has “Auto Shrink†enabled.
Status
After we disabled the auto shrink, it’s working fine.
Untuk referensi lebih lanjut, silakan googling dengan mengetikkan keyword berikut: Microsoft SQL Server Autoshrink
Technorati Tags: sql-server, sql
Popularity: 2% [?]
PT. Sandiloka
Komplek Dai-Chi Kav 47 Antapani - Bandung
022-7104067, 022-92888777
http://voucha.co.id
http://voucha.net
Leave a reply...
Peringatan: posting iklan/promosi langsung dihapus!





