TAILIEUCHUNG - Microsoft SQL Server 2008 R2 Unleashed- P221

Microsoft SQL Server 2008 R2 Unleashed- P221: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 | 2164 CHAPTER 52 SQL Server Integration Services Generally you get at least a 50 drop in transfer speed if the table has an index. The more indexes the greater the performance degradation. This is due to the logging factor more log records are being generated and index pages are being loaded into the cache and modified. This can also cause the log to grow possibly filling it depending on the log file settings . NOTE Despite the name even a nonlogged operation logs some things. In the case of indexes index page changes and allocations are logged but the main area of logging is of extent allocations every time the table is extended for additional storage space for the new rows. Batches By default bcp puts all the rows that are inserted into the target table into a single transaction. bcp calls this a batch. This arrangement reduces the amount of work the log must deal with however it locks down the transaction log by keeping a large part of it active which can make truncating or backing up the transaction log impossible or unproductive. By using the bcp batch -b switch you can control the number of rows in each batch or effectively each transaction . This switch controls the frequency of commits although it can increase the activity in the log it enables you to trim the size of the transaction log. You should tune the batch size in relation to the size of the data rows transaction log size and total number of rows to be loaded. The value you use for one load might not necessarily be the right value for all other loads. Note that if a subsequent batch fails the prior batches are committed and those rows become part of the table. However any rows copied up to the point of failure in the failing batch are rolled back. Parallel Loading A great enhancement of bcp is that you can now use it to do parallel loads of tables. If you want to take advantage of this feature the following must be true The bulk-copy operation must be nonlogged all requirements specified in the .

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.