hierarchyid Questions
7
Solved
I wanted to use the new HierarchyID type in SQL Server 2008 to handle the page relations in a small wiki application. However It would need to have multiple root nodes since every main article/page...
Phenacaine asked 30/8, 2009 at 1:8
5
Solved
Given a table with a hierarchyid type column, how do you write a query to return all rows that are ancestors of a specific node?
There is an IsDescendantOf() function, which is perfect for getting...
Stephanestephani asked 25/6, 2010 at 16:55
2
I'm experimenting with .net core, entity framework and sqlserver, i thought the hierarchyID is a perfect datatype for what i'm trying to model. But when i scaffolded the database, EFC was not able ...
Gid asked 18/6, 2020 at 15:44
4
Solved
I have a list of parent ids like this 100, 110, 120, 130 which is dynamic and can change. I want to get all descendants for specified parents in a single set. To get children for a single parent I ...
Harpoon asked 1/8, 2014 at 11:44
4
Solved
I have a genealogical database (about sheep actually), that is used by breeders to research genetic information. In each record I store fatherid and motherid. In a seperate table I store complete '...
Disario asked 23/2, 2009 at 14:14
2
I would like to insert the hierarchyId like this
/ - CEO (Root)
/1/ - Purchase Manager
/1/1/ - Purchase Executive
/2/ - Sales Manager
/2/1/ - Sales Executive
This is what the hierarchy i...
Overseas asked 14/12, 2010 at 13:50
1
Solved
I know its quite challenging, Is there any sql specialist please kindly help me to solve this.
I Have hierarchyID like below in NameHID column. Its representing /NameID/dadID/MomID/ respectively. ...
Streptomycin asked 17/5, 2017 at 5:24
2
My current application was built up in SQL Server 2008 server in JAVA with Hibernate and I had used HierarchyId data type for department hierarchy in my database.
I had written SQL queries to dea...
Woeful asked 2/7, 2014 at 7:46
3
I am a newbie in SQL Server 2008 and just got introduced to HierarchyId's.
I am learning from SQL Server 2008 - HIERARCHYID - PART I. So basically I am following the article line by line and while...
Confabulation asked 16/12, 2009 at 12:27
3
Solved
Using t-sql hierarchy Id how do I get all of the rows that have no children (that is the last decendants)?
Say my table is structured like this:
Id,
Name,
HierarchyId
And has these rows:
1...
Alleviator asked 19/12, 2011 at 13:34
3
Solved
I need to find all descendants of a category using HierarchyID for SQL Server.
I know how to find direct children but I would like to find children of children of children and so on.
Is there a ...
Phosphene asked 17/4, 2010 at 19:35
4
i've a Problem with the hierarchyID and UserRights for a Menu. I only want to give the User the Right for Level 4 for example and my QUery should automaticly select all Parent from the Level 4 Chil...
Sexpot asked 18/3, 2011 at 6:26
1
Solved
I have a set of hierarchical data being used in a SQL Server database. The data is stored with a guid as the primary key, and a parentGuid as a foreign key pointing to the objects immediate parent....
Petronilapetronilla asked 25/6, 2013 at 16:30
1
Solved
I have a hierarchical data. The most common queries will be "get parent branch for node" and "get subtree of node". Updates and inserts are not likely to occur often. I am choosing between nested s...
Projectile asked 24/9, 2012 at 15:32
2
Solved
Searched various NHibernate lists and haven't come up with a definitive answer. The SQL2008 dialect doesn't appear to have support for the HierarchyID data type - new date and time types only.
Doe...
Menderes asked 30/7, 2010 at 19:56
1
I haven't found any specific examples of this but I am interested in representing a whole directory structure with updates, etc using the hierarchyid datatype. This is a common use case cited for t...
Hexapody asked 22/8, 2011 at 16:53
3
Solved
I have two tables with hierarchyid fields, one of which is a staging table with new data that needs to be merged into the other (that is, a set of nodes that need to be added to the main tree, some...
Rain asked 14/8, 2011 at 17:2
2
Solved
We are using WCF Data Service based on an Entity Framework model for our application.
In this we need to add the table with a column of type HierarchyId. When I add that table to the EDMX file, t...
Nabob asked 30/11, 2010 at 16:34
2
Solved
I am trying to implement hierarchyID in a table (dbo.[Message]) containing roughly 50,000 rows (will grow substantially in the future). However it takes 30-40 seconds to retrieve about 25 results.
...
Felicity asked 26/4, 2010 at 14:26
2
Solved
I am reading the SQL server 2008 bible and it says the materialized path pattern is significantly faster then the hierarchyid. Is this really true? How can I make the hierarchyid have equal or bett...
Kaslik asked 22/4, 2010 at 23:36
2
Solved
I haven't used the HierarchyID much, so I'm a little unsure. If my table has a HierarchyID, how do I perform a cascading delete? (i.e. delete all 'children' when deleting the 'parent')
I assume I ...
Danged asked 29/7, 2009 at 7:45
3
I understand it that we have to map this type as binary to get to it in the application code. But why isn't there an exact equivalent with all those type methods?
How are we supposed to work with ...
Effloresce asked 30/7, 2009 at 4:58
1
© 2022 - 2024 — McMap. All rights reserved.