>> Now the menu is only two levels deep. It could grow deeper. <<
Do yoU have a copy of TREES & HIERARCHIES IN SQL? You need it.
Thanks for the response. This is what I came up with.
----------------
Create Table MenuListingTest(
MenuID int Primary Key,
MenuListing varchar(200),
MenuParentID int
)
Insert into MenuListingTest Values(1, 'Home', 0)
Insert into MenuListingTest Values(2, 'New Hire Checklist', 0)
Insert into MenuListingTest Values(3, 'IT Groups', 0)
Insert into MenuListingTest Values(4, 'IT News and Announcements', 0)
Insert into MenuListingTest Values(5, 'Monthly Group Meetings', 0)
Insert into MenuListingTest Values(6, 'Content Management', 0)
Insert into MenuListingTest Values(7, 'IT Bragging Board', 0)
Insert into MenuListingTest Values(8, 'Database Admin', 3)
Insert into MenuListingTest Values(9, 'Change Management', 3)
Insert into MenuListingTest Values(10, 'EBS', 3)
Insert into MenuListingTest Values(11, 'Oracle GI / SPR', 3)
Insert into MenuListingTest Values(12, 'IT Infrastructure', 3)
Insert into MenuListingTest Values(13, 'IT Quality Compliance', 3)
--
---------------------
zwieback89
Message posted via SQLMonster.com
http://www.sqlmonster.com/Uwe/Forums.aspx/sql-server-programming/2007...
-----------------------------------------------Reply-----------------------------------------------