SQL Server 2008 Hierarchy ID data type

Source: Internet
Author: User
Tags management studio sql server management sql server management studio

Directory

Prepare for Work 1

Exercise: Using HierarchyID data type 2

Preparatory work

Estimated time required to complete this experiment

40 minutes.

Goal

After completing this experiment, you will be able to:

Handling hierarchical ID data types in SQL Server 2008

Prerequisite

Before completing this experiment, you must have:

Experience with writing Transact-SQL scripts and using SQL Server Management Studio.

Experiment scene

SQL Server 2008 allows database applications to build a tree structure in a way that is more efficient than existing methods. HierarchyID is a new type of system that stores values that can represent nodes in a hierarchical tree. This new type provides a very flexible programming model. It is implemented as a CLR UDT and opens up a number of efficient, useful built-in methods for creating and manipulating nodes in the hierarchy.

Virtual Machine Environment

Enable the Microsoft Virtual PC from the Start menu or desktop. If Virtual PC Console is not enabled, check the system tray and double-click the Microsoft Virtual pc in the system tray.

Select Sql08 and click Start.

After the virtual machine is running, you can send a Ctrl+alt+del command to the virtual machine by clicking on the right Alt+del.

In the Login window, enter the following information:

User Name:administrator

password:password01!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.