TAILIEUCHUNG - Brad’s Sure Guide to SQL Server Maintenance Plans- P25

Brad’s Sure Guide to SQL Server Maintenance Plans- P25: SQL Server has a reputation as being a simple database application to install, configure, and maintain. This is a little misleading. SQL Server is a powerful relational database that can handle the needs of the largest organizations and, as such, its proper maintenance almost certainly requires the attention of an experienced DBA. | Chapter 8 Reorganize Index Task After the Reorganize Task runs it produces a text report similar to the following Microsoft R Server Maintenance Utility Unicode Version Report was generated on HAWAII. Maintenance Plan MaintenancePlan Duration 00 00 15 Status Succeeded. Details Reorganize Index HAWAII Reorganize index on Local server connection Databases AdventureWorks Object Tables and views Compact large objects Task start 2009-07-30T15 05 51. Task end 2009-07-30T15 06 06. Success Command USE AdventureWorks GO ALTER INDEX PK_AWBuildVersion_SystemInformationID ON dbo . AWBuildVersion REORGANIZE WITH LOB_COMPACTION ON GO USE AdventureWorks GO ALTER INDEX PK_DatabaseLog_DatabaseLogID ON dbo . DatabaseLog REORGANIZE WITH LOB_COMPACTION ON GO While the above is an abbreviated report yours will show the ALTER INDEX command run for every index in every table in your selected databases. If there are any problems or error messages you will see them here also. Reorganize Versus Rebuild Now that you have a little background about Rebuild and Reorganize 1 think it s time for a more comprehensive summary of the pros and cons of using the Reorganize Index task versus using the Rebuild Index task. With this information you will be better able to make an educated decision on which option is right for your particular circumstances. 121 Chapter 8 Reorganize Index Task Reorganize Index Task Rebuild Index Task Removing empty space and logical fragmentation Performs a less thorough index defragmentation than Rebuild Index. If an index does not have any fragmentation then it is not reorganized saving resources. Virtually all wasted free space and logical fragmentation is removed. All indexes are rebuilt from scratch whether they need it or not. Performance impact Does not require long blocking locks. An online task that allows users to access the database during the task. Requires potentially long blocking locks that prevent users from accessing the indexes being rebuilt. A .

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.