Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Express Edition and Compact Edition (2005)
 Dear robvolk

Author  Topic 

CoTuDo
Starting Member

3 Posts

Posted - 2006-05-11 : 07:47:35
robvolk, you've posted an article about trees and hierarchies:
http://www.sqlteam.com/item.asp?ItemID=8866
but I couldn't find the second part of it, and I need a move up and down procedure for my tree. My tree is built with table :
tree(treeNodeId,parentNodeId,sortOrder)
the third column: sortOrder it's for sort the tree, to have the possibility to move up and down...but i still can't realize it...please help me...:)

eyechart
Master Smack Fu Yak Hacker

3575 Posts

Posted - 2006-05-11 : 11:39:20
Part II never materialized..



-ec
Go to Top of Page

afrika
Master Smack Fu Yak Hacker

2706 Posts

Posted - 2006-05-11 : 15:49:40
cross post
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=65941
Go to Top of Page

jsmith8858
Dr. Cross Join

7423 Posts

Posted - 2006-05-11 : 18:28:53
If you are using SQL Express, then you can write recursive SQL statements pretty easily using a simple ID/ParentID structure in your table.
Go to Top of Page

robvolk
Most Valuable Yak

15732 Posts

Posted - 2006-05-12 : 09:00:51
Sorry about that, I was looking for some articles that Corey (Seventhknight) wrote that covered the things you're looking for, but the links he posted aren't working anymore.
Go to Top of Page

eyechart
Master Smack Fu Yak Hacker

3575 Posts

Posted - 2006-05-12 : 12:03:15
I found Corey's articles in the wayback machine

Part I http://web.archive.org/web/20050309120528/http://www.seventhnight.com/treestructs.asp
Part II http://web.archive.org/web/20050222080930/http://www.seventhnight.com/treestructs2.asp
Part III http://web.archive.org/web/20050222160727/http://www.seventhnight.com/treestructs3.asp

These pages take some time to load, so be patient.


EDIT:
I just noticed that the forums treat the links a little weird. You'll have to copy/paste the full URLs into your browser to get it to work.



-ec
Go to Top of Page

Seventhnight
Master Smack Fu Yak Hacker

2878 Posts

Posted - 2006-05-12 : 14:33:59
also here: http://www.thesitedoctor.co.uk/seventhnight/treestructs/

Thanks to Tim (timgaunt)

I will get my site back up one day...


Corey

Co-worker on children "...when I have children, I'm going to beat them. Not because their bad, but becuase I think it would be fun ..."
Go to Top of Page
   

- Advertisement -