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
 General SQL Server Forums
 Database Design and Application Architecture
 database design for unbalance tree

Author  Topic 

sirwan
Starting Member

4 Posts

Posted - 2013-06-16 : 03:26:46
Hi all
I need to draw an unbalance tree on a web site page and i have to issues
first: i don't know how to save nodes values and positions in my database.
Second: how to draw it in my html web site.
Note: i can use any web programming language, i just need the way to draw .
Any reference will be so help full.

James K
Master Smack Fu Yak Hacker

3873 Posts

Posted - 2013-06-16 : 13:00:58
For representing a tree in SQL Server, there are various ways - one is to use the hierarchyid data type described here: http://msdn.microsoft.com/en-us/library/bb677290.aspx There are some examples of representing an organizational hierarchical structure (managers and subordinates) as well on one of the links from that page (although I couldn't find it right now when I searched for it).

As for representing it graphically in a web page, this is the wrong forum to ask that question. However, I would point you to HTML5 Canvas http://msdn.microsoft.com/en-us/hh534406.aspx
Go to Top of Page
   

- Advertisement -