I have the following table in a SQL Server 2008 database:
Id Name ParentFolder -- ---- ------------ 1 Europe NULL 2 Asia NULL 3
I'm not sure if this will work in your case, but in this example http://www.pure-performance.com/2009/03/managing-hierarchical-data-in-sql/ there is something about using an extra column, called lineage.
I have used this method with success.