July 2012
Intermediate to advanced
816 pages
27h 38m
English
In this chapter, we showed how to use the hierarchyid data type to cast a tree structure over data stored in ordinary database tables. You can now work with hierarchical structures in SQL Server, such as the new FileTable introduced in SQL Server 2012 (you’ll learn all about FileTable the next chapter). The hierarchyid data type provides a set of methods and indexing strategies to enable efficient searching and manipulation of hierarchy nodes at the database level. This enables you to apply a hierarchical model to traditional table data rather than resorting to XML, in scenarios where it makes better sense to keep the data stored relationally than to redesign the data for XML storage.
Read now
Unlock full access