TAILIEUCHUNG - The Real MTCS SQL Server 2008 Exam 70/432 Prep Kit- P101

The Real MTCS SQL Server 2008 Exam 70/432 Prep Kit- P101: Congratulations on your journey to become certified in SQL Server 2008. This book will help prepare you for your exam and give you a practical view of working with SQL Server 2008. | 482 Chapter 11 SQL Server XML Support customerPhone - VARCHAR 255 555-8746 customer address1 123 Main Street address1 city Newark city state DE state zip 14785 zip customer INSERT INTO XML_Table customerName customerPhone customerAddress VALUES customerName - VARCHAR 255 Jennifer Liddle customerPhone - VARCHAR 255 555-2497 customer address1 45 Andrew Street address1 city Clifton city state AH state zip 18783 zip customer To create the primary key for this table you will use the code shown in Figure . Figure Create Primary XML Index CREATE PRIMARY XML INDEX PK_XML_Data_customerAddress ON XML_Table customerAddress Secondary XML indexes are also created on a XML data type column. There are three types of secondary XML indexes see Table . Table Secondary XML Index Types Secondary Index Description PATH XML index helps with queries that use XML path expressions. VALUE XML index helps with queries that search for values anywhere in the XML document. PROPERY XML index helps with queries that retrieve particular object properties from within an XML document. SQL Server XML Support Chapter 11 483 To create a secondary XML index you must use the CREATE XML INDEX statement. Figure shows the syntax for the CREATE XML INDEX. Figure CREATE XML INDEX Syntax CREATE XML INDEX index_name ON table_name xml_column_name USING XML INDEX xml_index_name FOR VALUE PATH PROPERTY Using the table you created in Figure XML_Table you will create a secondary XML index on the customerAddress column. Figure CREATE XML INDEX Usage CREATE XML INDEX SD_XML_Data_customerAddress ON XML_Table customerAddress USING XML INDEX PK_XML_Data_customerAddress FOR VALUE Along with creating primary and secondary indexes on XML data type columns you can also modify these indexes. The ALTER INDEX Transact-SQL DDL statement can be used to modify existing XML indexes. In Figure you will modify your secondary index DB_XML_Data_customerAddress to turn ALLOW_ ROW_LOCKS OFF. .

TÀI LIỆU MỚI ĐĂNG
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.