TAILIEUCHUNG - Microsoft SQL Server 2008 R2 Unleashed- P194

Microsoft SQL Server 2008 R2 Unleashed- P194: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 | 1924 CHAPTER 47 Using XML in SQL Server 2008 grows proportionally more costly as the number of rows of the table grows. It also prevents the value range scans possible when matching against typed values. When the types of all the nodes are declared in an associated XML schema the values are stored as the corresponding SQL type not as strings and runtime typecasting is not necessary. Following are some other points for performance consideration When retrieving an entire XML instance it is faster to select the xml column by name without using query or nodes because serialization of the XML up from the shredded Infoset format is costly. XML indexes are not used during execution of check constraints on xml columns. You should use the exist method whenever possible to restrict the range of data being scanned. Full-Text Indexing xml columns can be full-text indexed just like relational columns. The big difference is that for xml columns the word boundary is not whitespace but element delimiters . Element text is indexed attribute values are ignored. It s important to use exist when using a full-text T-SQL function such as CONTAINS to reduce unnecessary scans on the XML columns that don t contain the text you are looking for. NOTE To generate a full-text index a unique non-null single column index is required. The constraint name PKSimpleBook_2F2FFC0C shown in the following example represents the automatically generated primary key index name for the primary key of SimpleBook. Your instance of SQL Server will likely generate a different name for this index. Summary 1925 Here s an example of how to generate and utilize a full-text index on an xml column CREATE FULLTEXT CATALOG FullTextXmlCatalog GO CREATE FULLTEXT INDEX ON SimpleBook BookXml KEY INDEX PK_ _SimpleBook_2F2FFC0C ON FullTextXmlCatalog GO SELECT End of Chapter1 FROM SimpleBook WHERE CONTAINS BookXml Excellent1 AND book chapter title contains text 1 Excellent 1 1 GO End of Chapter Summary

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.