TAILIEUCHUNG - Microsoft SQL Server 2008 R2 Unleashed- P85

Microsoft SQL Server 2008 R2 Unleashed- P85:SQL Server 2005 provided a number of significant new features and enhancements over what was available in SQL Server 2000. This is not too surprising considering there was a five-year gap between these major SQL Server 2008 is not as much of a quantum leap forward from SQL Server 2005 | 784 CHAPTER 24 Creating and Managing Tables New results from the SELECT statement in Listing partition_scheme partition_number filegroup range_boundary rows SalesBigPS1 1 Older_Data 0 SalesBigPS1 2 2005_Data 2005-01-01 00 00 00 30 SalesBigPS1 3 2006_Data 2006-01-01 00 00 00 613560 SalesBigPS1 4 2007_Data 2007-01-01 00 00 00 616450 SalesBigPS1 5 2008_Data 2008-01-01 00 00 00 457210 SalesBigPS1 6 2009_Data 2009-01-01 00 00 00 0 SalesBigPS1 7 2010_Data 2010-01-01 00 00 00 0 Dropping a Table Partition You can drop a table partition by using the ALTER PARTITION FUNCTION . MERGE RANGE command. This command essentially removes a boundary point from a partition function as the partitions on each side of the boundary are merged into one. The partition that held the boundary value is removed. The filegroup that originally held the boundary value is removed from the partition scheme unless it is used by a remaining partition or is marked with the NEXT USED property. Any data that was in the removed partition is moved to the remaining neighboring partition. If a RANGE RIGHT partition boundary was removed the data that was in that boundary s partition is moved to the partition to the left of boundary. If it was a RANGE LEFT partition the data is moved to the partition to the right of the boundary. The following command merges the 2005 partition into the Old_Data partition for the sales_big_partitioned table ALTER PARTITION FUNCTION SalesBigPFI MERGE RANGE 01 01 2005 Figure demonstrates how the 2005 RANGE RIGHT partition boundary is removed and the data is merged to the left into the Old_Data partition. CAUTION Splitting or merging partitions for a partition function affects all objects using that partition function. You can also see the effects of merging the partition on the system catalogs by running the same query as shown in Listing New results from the SELECT statement in Listing partition_scheme partition_number filegroup range_boundary rows .

TỪ KHÓA LIÊN QUAN
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.