Click here to Skip to main content
15,910,234 members
Home / Discussions / Database
   

Database

 
AnswerRe: set command error Pin
Joe29-Nov-07 22:30
Joe29-Nov-07 22:30 
QuestionBulk Update Fails Pin
Joe29-Nov-07 21:58
Joe29-Nov-07 21:58 
AnswerRe: Bulk Update Fails Pin
andyharman29-Nov-07 22:36
professionalandyharman29-Nov-07 22:36 
GeneralRe: Bulk Update Fails Pin
Joe29-Nov-07 23:46
Joe29-Nov-07 23:46 
GeneralRe: Bulk Update Fails Pin
andyharman30-Nov-07 2:06
professionalandyharman30-Nov-07 2:06 
AnswerRe: Bulk Update Fails Pin
Mike Dimmick30-Nov-07 0:58
Mike Dimmick30-Nov-07 0:58 
GeneralRe: Bulk Update Fails Pin
Joe30-Nov-07 1:23
Joe30-Nov-07 1:23 
QuestionA recursive dilema??? Pin
AndyBrew7029-Nov-07 21:06
AndyBrew7029-Nov-07 21:06 
Hi All

Background
----------

I have a database table namely tblSection that stores sections that have parent child relationships e.g.

Section 1
|
|--Section 2
|
|--Section 3
| |
| |--Section 4
|
|--Section 5
|
Section 6

The column structure for this table is:

SectionGUID uniqueidentifier PK
ParentGUID uniqueidentifier ALLOW NULL
Title nvarchar(100)

So my root level records are anything where ParentGUID IS NULL and the remaining records can have variable levels of nested children.

My Problem
----------

So what would people suggest with regards handling this structure within SQL for example a typical request is to return all sections below a specific node within the hierarchy? Currently I deal with the scenarios I have by extracting all folders into a single System.Data.DataTable object and then traverse the tree within my code which is OK for certain types of process but now I am looking at more number crunching type processes that approach is slow and cumbersome Frown | :(

Thanks in advance

Andy
AnswerRe: A recursive dilema??? Pin
pmarfleet29-Nov-07 21:17
pmarfleet29-Nov-07 21:17 
AnswerRe: A recursive dilema??? Pin
AndyBrew7029-Nov-07 23:55
AndyBrew7029-Nov-07 23:55 
Questionsql,query very urgent Pin
rameshdontagani29-Nov-07 19:14
rameshdontagani29-Nov-07 19:14 
AnswerRe: sql,query very urgent Pin
Joe29-Nov-07 19:41
Joe29-Nov-07 19:41 
GeneralRe: sql,query very urgent Pin
rameshdontagani29-Nov-07 19:44
rameshdontagani29-Nov-07 19:44 
GeneralRe: sql,query very urgent Pin
Vasudevan Deepak Kumar29-Nov-07 19:54
Vasudevan Deepak Kumar29-Nov-07 19:54 
AnswerRe: sql,query very urgent Pin
Vasudevan Deepak Kumar29-Nov-07 19:55
Vasudevan Deepak Kumar29-Nov-07 19:55 
QuestionMySQL quick question Pin
sonywar29-Nov-07 14:32
sonywar29-Nov-07 14:32 
QuestionRe: MySQL quick question Pin
TJoe30-Nov-07 2:34
TJoe30-Nov-07 2:34 
AnswerRe: MySQL quick question Pin
andyharman30-Nov-07 2:49
professionalandyharman30-Nov-07 2:49 
Question"Logon Failed. Please Try Again." [modified] Pin
Reveille29-Nov-07 11:30
Reveille29-Nov-07 11:30 
AnswerRe: "Logon Failed. Please Try Again." Pin
Paul Conrad29-Nov-07 12:59
professionalPaul Conrad29-Nov-07 12:59 
GeneralRe: "Logon Failed. Please Try Again." Pin
Reveille29-Nov-07 14:50
Reveille29-Nov-07 14:50 
GeneralRe: "Logon Failed. Please Try Again." Pin
Paul Conrad29-Nov-07 17:50
professionalPaul Conrad29-Nov-07 17:50 
GeneralRe: "Logon Failed. Please Try Again." Pin
Reveille29-Nov-07 18:16
Reveille29-Nov-07 18:16 
AnswerRe: BINARY field manipulations Pin
Frank Kerrigan30-Nov-07 0:15
Frank Kerrigan30-Nov-07 0:15 
GeneralRe: BINARY field manipulations Pin
mobius11100130-Nov-07 2:40
mobius11100130-Nov-07 2:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.