Click here to Skip to main content
12,547,793 members (45,674 online)
Click here to Skip to main content
Articles » Database » Database » General » Downloads

Tagged as


6 bookmarked

SQL Server Recursive Fetch From Self Referencing Table

, 19 Nov 2009 CPOL
CREATE PROC GetChildNodes (@ID uniqueidentifier)ASBEGINWITH PermissionList (PermissionID, PermissionName, Level)AS(SELECT ap.PermissionID, ap.PermissionName, 0 AS LevelFROM Permission AS apWHERE PermissionID = @IDUNION ALLSELECT ap.PermissionID, ap.PermissionName, Level + 1FROM
No downloads associated with this content

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Anish M
Web Developer
India India
No Biography provided

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.161018.1 | Last Updated 19 Nov 2009
Article Copyright 2009 by Anish M
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid