Microsoft SQL Server
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseMicrosoft SQL Server

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old September 5th, 2004, 12:34 PM
macupryk macupryk is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 11 macupryk User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 16 sec
Reputation Power: 0
Managing Users

I need an application say where a hierarchy level is used in such a way to manage users. For example the parent can create a child node with a username and password. Then the tree goes down. But only each level above has access to the lower level.The tree now has three levels, then the tree goes down. I am a bit stumped on this one if anyone can help me I would apprecitate it .

Sincerely,
Matt Cupryk

Reply With Quote
  #2  
Old September 5th, 2004, 11:32 PM
Doug G Doug G is offline
Grumpier Old Moderator
ASP Free God 11th Plane (10000 - 10499 posts)
 
Join Date: Sep 2003
Posts: 10,143 Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 3 Weeks 4 Days 22 h 23 m 39 sec
Reputation Power: 181
Perhaps a commercial product like Authentix will work for you.
__________________
======
Doug G
======
I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain

Reply With Quote
  #3  
Old September 7th, 2004, 05:05 PM
jlestein jlestein is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Location: Oregon
Posts: 7 jlestein User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
We actually have a very simple system for this.
Our table has a primary key that is a particular users ID.

There is also another field which we call manager ID. The manager ID has the User ID of the parent in the tree structure.

This way you can have a tree structure that goes as deep as the number of users you have!

eg.

CREATE TABLE #SampleUsersTbl
(UserID Int,
Otherfields VarChar(10),
ManagerID Int)


INSERT INTO #SampleUsersTbl VALUES (1,'',NULL)
INSERT INTO #SampleUsersTbl VALUES (2,'',1)
INSERT INTO #SampleUsersTbl VALUES (3,'',1)
INSERT INTO #SampleUsersTbl VALUES (4,'',3)


SELECT * FROM #SampleUsersTbl

DROP TABLE #SampleUsersTbl


Let me know if you understand how this works.
Joshua

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft SQL Server > Managing Users


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT