i havent used stored procs in a while
i have a temp table to give me my results and i am able to return 1 set of data
but what i want to happen is to traverse up my data tree
lets say you have locations like country, state, county, city, area
where states have a parent of the country, counties have parents of a state, cities in the county on down
when i choose a city, i want it to continue up until theres no more up
so if i pick a city, i would get a recordset of a city, county, state, country
i have the recordset and i want to have a sub-proc INSIDE my stored procedure that goes out looking for the parent, and continues to go up, recursively, until no more parents
so, how do you put a sub-proc inside a proc
thanks
i have a temp table to give me my results and i am able to return 1 set of data
but what i want to happen is to traverse up my data tree
lets say you have locations like country, state, county, city, area
where states have a parent of the country, counties have parents of a state, cities in the county on down
when i choose a city, i want it to continue up until theres no more up
so if i pick a city, i would get a recordset of a city, county, state, country
i have the recordset and i want to have a sub-proc INSIDE my stored procedure that goes out looking for the parent, and continues to go up, recursively, until no more parents
so, how do you put a sub-proc inside a proc
thanks