Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hierarchical information
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
00547813
Message ID:
00547895
Vues:
13
There is no good solution for manipulating trees from SQL. SQL is natively a set-based system and tree manipulation required row-oriented operations. There are no elegant solutions - yet.

The BOL has one solution. Check out the topic Expanding Hierarchies. There have been a couple of articles address the issue in SQL Server magazine. Joe Celko addresses the issue in his book SQL For Smarties. I've actually implemented his solution. It works very well for non-volitle data sets.

-Mike
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform